public class UUIDFlag
extends Flag<UUID>
-
Constructor Summary
Constructors
-
Method Summary
Convert the value stored for this flag into a type that can be
serialized into YAML.
Parse a given input to coerce it to a type compatible with the flag.
Convert a raw type that was loaded (from a YAML file, for example)
into the type that this flag uses.
-
-
Method Details
-
parseInput
Description copied from class: Flag
Parse a given input to coerce it to a type compatible with the flag.
- Specified by:
parseInput
in class Flag<UUID>
- Parameters:
context
- the FlagContext
- Returns:
- The coerced type
- Throws:
InvalidFlagFormat
- Raised if the input is invalid
-
unmarshal
Description copied from class: Flag
Convert a raw type that was loaded (from a YAML file, for example)
into the type that this flag uses.
- Specified by:
unmarshal
in class Flag<UUID>
- Parameters:
o
- The object
- Returns:
- The unmarshalled type
-
marshal
Description copied from class: Flag
Convert the value stored for this flag into a type that can be
serialized into YAML.
- Specified by:
marshal
in class Flag<UUID>
- Parameters:
o
- The object
- Returns:
- The marshalled type