Class InputTypesExpected
Object
InputTypesExpected
A list of base (parent) classes for input-types that a task expects.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionInputTypesExpected
(Class<? extends InputFromManager> inputTypeClass) Creates with the class of the input-type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Class<? extends InputFromManager> inputTypeClass) Appends an input-type class to the existing list.boolean
doesClassInheritFromAny
(Class<? extends InputFromManager> childClass) Does the child-class inherit from any one of expected input-types?toString()
-
Constructor Details
-
InputTypesExpected
Creates with the class of the input-type.- Parameters:
inputTypeClass
- the class of the input-type.
-
-
Method Details
-
doesClassInheritFromAny
Does the child-class inherit from any one of expected input-types?- Parameters:
childClass
- the class to test if it inherits- Returns:
- true if inherits from at least one input-type, false otherwise
-
add
Appends an input-type class to the existing list.- Parameters:
inputTypeClass
- the input-type class to append.
-
toString
-