Class FeatureUnary<T extends FeatureInput,S extends FeatureInput>

Type Parameters:
T - input-type used for calculating feature
S - input-type used for the "item" that is the single element
Direct Known Subclasses:
AsSingle, FeatureUnaryGeneric

public abstract class FeatureUnary<T extends FeatureInput,S extends FeatureInput> extends Feature<T>
A feature that contains another feature as a bean-parameter.

Usually some conversion occurs between one feature-type and another.

Author:
Owen Feehan
  • Constructor Details

    • FeatureUnary

      public FeatureUnary()
    • FeatureUnary

      public FeatureUnary(Feature<S> item)
  • Method Details

    • inputType

      public Class<? extends FeatureInput> inputType()
      Description copied from class: Feature
      The class corresponding to feature input-type.

      i.e. corresponding to the T template parameter.

      Specified by:
      inputType in class Feature<T extends FeatureInput>
      Returns:
      the class.
    • getItem

      public Feature<S> getItem()
    • setItem

      public void setItem(Feature<S> item)