Class InputTypesExpected

Object
InputTypesExpected

public class InputTypesExpected extends Object
A list of base (parent) classes for input-types that a task expects.
Author:
Owen Feehan
  • Constructor Details

    • InputTypesExpected

      public InputTypesExpected(Class<? extends InputFromManager> inputTypeClass)
      Creates with the class of the input-type.
      Parameters:
      inputTypeClass - the class of the input-type.
  • Method Details

    • doesClassInheritFromAny

      public boolean doesClassInheritFromAny(Class<? extends InputFromManager> childClass)
      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

      public void add(Class<? extends InputFromManager> inputTypeClass)
      Appends an input-type class to the existing list.
      Parameters:
      inputTypeClass - the input-type class to append.
    • toString

      public String toString()
      Overrides:
      toString in class Object