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