public class SimpleArgument<T> extends java.lang.Object implements Argument<T>
| Constructor and Description |
|---|
SimpleArgument(java.lang.String name,
WrapFormat<T,?> wrapperFormat) |
SimpleArgument(java.lang.String name,
WrapFormat<T,?> wrapperFormat,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<ParseResult<T>> |
defaultValue() |
ArgumentKey |
getKey() |
java.lang.String |
getName() |
WrapFormat<T,?> |
getWrapperFormat() |
boolean |
hasDefaultValue() |
Meta |
meta() |
@Nullable MetaHolder |
parentMeta() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyName, of, ofempty, metaCollectorpublic SimpleArgument(java.lang.String name,
WrapFormat<T,?> wrapperFormat,
boolean nullable)
public SimpleArgument(java.lang.String name,
WrapFormat<T,?> wrapperFormat)
public java.lang.String getName()
public ArgumentKey getKey()
public WrapFormat<T,?> getWrapperFormat()
getWrapperFormat in interface Argument<T>getWrapperFormat in interface Requirement<T>public Meta meta()
meta in interface MetaHolder@Nullable public @Nullable MetaHolder parentMeta()
parentMeta in interface MetaHolderpublic java.util.Optional<ParseResult<T>> defaultValue()
defaultValue in interface Argument<T>public boolean hasDefaultValue()
hasDefaultValue in interface Argument<T>