| Constructor and Description |
|---|
MapFlag(java.lang.String name,
Flag<K> keyFlag,
Flag<V> valueFlag) |
MapFlag(java.lang.String name,
RegionGroup defaultGroup,
Flag<K> keyFlag,
Flag<V> valueFlag) |
| Modifier and Type | Method and Description |
|---|---|
Flag<K> |
getKeyFlag()
Get the flag that is stored as the key flag type.
|
Flag<V> |
getValueFlag()
Get the flag type that is stored as values.
|
java.lang.Object |
marshal(java.util.Map<K,V> o)
Convert the value stored for this flag into a type that can be
serialized into YAML.
|
java.util.Map<K,V> |
parseInput(FlagContext context)
Parse a given input to coerce it to a type compatible with the flag.
|
java.util.Map<K,V> |
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 MapFlag(java.lang.String name,
@Nullable
RegionGroup defaultGroup,
Flag<K> keyFlag,
Flag<V> valueFlag)
public Flag<K> getKeyFlag()
public Flag<V> getValueFlag()
public java.util.Map<K,V> parseInput(FlagContext context) throws InvalidFlagFormat
FlagparseInput in class Flag<java.util.Map<K,V>>context - the FlagContextInvalidFlagFormat - Raised if the input is invalidpublic java.util.Map<K,V> unmarshal(@Nullable java.lang.Object o)
Flag