Class DefineSingle<T extends FeatureInput>

Type Parameters:
T - the feature input-type
All Implemented Interfaces:
Provider<FeatureList<T>>

public class DefineSingle<T extends FeatureInput> extends ReferencingFeatureListProvider<T>
Specifies a single feature directly without assigning any custom-naming.
Author:
Owen Feehan
  • Constructor Details

    • DefineSingle

      public DefineSingle()
    • DefineSingle

      public DefineSingle(Feature<T> item)
      Creates a new DefineSingle instance.
      Parameters:
      item - The sole feature that forms the list.
  • Method Details

    • get

      public FeatureList<T> get()
      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
    • getItem

      public Feature<T> getItem()
      The sole feature that forms the list.
    • setItem

      public void setItem(Feature<T> item)
      The sole feature that forms the list.