Package redempt.ordinate.constraint
Class ConstraintComponent<T,V>
java.lang.Object
redempt.ordinate.component.abstracts.CommandComponent<T>
redempt.ordinate.constraint.ConstraintComponent<T,V>
- All Implemented Interfaces:
Named
-
Constructor Summary
ConstructorDescriptionConstraintComponent
(Constraint<T, V> constraint, Supplier<Integer> index, String name, MessageFormatter<T> errorGenerator) -
Method Summary
-
Constructor Details
-
ConstraintComponent
public ConstraintComponent(Constraint<T, V> constraint, Supplier<Integer> index, String name, MessageFormatter<T> errorGenerator)
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in classCommandComponent<T>
-
parse
- Specified by:
parse
in classCommandComponent<T>
-
getName
-
getMaxParsedObjects
public int getMaxParsedObjects()- Specified by:
getMaxParsedObjects
in classCommandComponent<T>
-
getMaxConsumedArgs
public int getMaxConsumedArgs()- Specified by:
getMaxConsumedArgs
in classCommandComponent<T>
-