fromString

Attempts to parse a DiamondCommand instance from the given String, throwing an IllegalArgumentException if the given value did not contain a valid DiamondCommand value.

Return

A DiamondCommand value matching the given input.

Parameters

value

String to parse.

Throws

if the given input value did not represent a valid DiamondCommand value.