Package org.incendo.cloud.component
Class TypedCommandComponent<C,T>
java.lang.Object
org.incendo.cloud.component.CommandComponent<C>
org.incendo.cloud.component.TypedCommandComponent<C,T>
- All Implemented Interfaces:
Comparable<CommandComponent<C>>,PreprocessorHolder<C>,Describable,CloudKeyHolder<T>
@API(status=STABLE)
public final class TypedCommandComponent<C,T>
extends CommandComponent<C>
implements CloudKeyHolder<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.incendo.cloud.component.CommandComponent
CommandComponent.Builder<C,T>, CommandComponent.ComponentType -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value, if specified.key()Returns the key that identifies this object.parser()Returns the parser.Returns the type of the values produced by theCommandComponent.parser().Methods inherited from class org.incendo.cloud.component.CommandComponent
addPreprocessor, aliases, alternativeAliases, builder, builder, builder, compareTo, description, equals, hasDefaultValue, hashCode, name, ofType, optional, preprocess, preprocessors, required, suggestionProvider, toString, type
-
Method Details
-
valueType
Description copied from class:CommandComponentReturns the type of the values produced by theCommandComponent.parser().- Overrides:
valueTypein classCommandComponent<C>- Returns:
- the types of the values produced by the parser
-
parser
Description copied from class:CommandComponentReturns the parser.- Overrides:
parserin classCommandComponent<C>- Returns:
- the parser
-
defaultValue
Description copied from class:CommandComponentReturns the default value, if specified.This should always return
nullifCommandComponent.required()istrue.- Overrides:
defaultValuein classCommandComponent<C>- Returns:
- the default value if specified, else
null
-
key
Description copied from interface:CloudKeyHolderReturns the key that identifies this object.- Specified by:
keyin interfaceCloudKeyHolder<C>- Returns:
- the identifying key.
-