public class SetFlag<T> extends Flag<java.util.Set<T>>
| Constructor and Description |
|---|
SetFlag(java.lang.String name,
Flag<T> subFlag) |
SetFlag(java.lang.String name,
RegionGroup defaultGroup,
Flag<T> subFlag) |
| Modifier and Type | Method and Description |
|---|---|
Flag<T> |
getType()
Get the flag that is stored in this flag.
|
java.lang.Object |
marshal(java.util.Set<T> o)
Convert the value stored for this flag into a type that can be
serialized into YAML.
|
java.util.Set<T> |
parseInput(FlagContext context)
Parse a given input to coerce it to a type compatible with the flag.
|
java.util.Set<T> |
unmarshal(java.lang.Object o)
Convert a raw type that was loaded (from a YAML file, for example)
into the type that this flag uses.
|
chooseValue, getDefault, getName, getRegionGroupFlag, hasConflictStrategy, implicitlySetWithMembership, isValidName, requiresSubject, toString, usesMembershipAsDefaultpublic SetFlag(java.lang.String name,
RegionGroup defaultGroup,
Flag<T> subFlag)
public Flag<T> getType()
public java.util.Set<T> parseInput(FlagContext context) throws InvalidFlagFormat
FlagparseInput in class Flag<java.util.Set<T>>context - the FlagContextInvalidFlagFormat - Raised if the input is invalidpublic java.util.Set<T> unmarshal(java.lang.Object o)
Flag