Class Sample

java.lang.Object
org.moeaframework.core.TypedProperties
org.moeaframework.analysis.sample.Sample
All Implemented Interfaces:
Referenceable, Displayable, Formattable<Map.Entry<String,String>>

public class Sample extends TypedProperties implements Referenceable
A single parameter sample.
See Also:
  • Constructor Details

    • Sample

      public Sample()
      Constructs a new, empty sample.
  • Method Details

    • copy

      public Sample copy()
      Creates a copy of this parameter.
      Returns:
      the copy
    • get

      public <T> T get(Parameter<T> parameter)
      Reads the value of a parameter from this sample.
      Type Parameters:
      T - the type of the parameter
      Parameters:
      parameter - the parameter
      Returns:
      the parameter value
    • getReference

      public Reference getReference()
      Description copied from interface: Referenceable
      Returns the data store reference for this object.
      Specified by:
      getReference in interface Referenceable
      Returns:
      the reference