Class Sample
java.lang.Object
org.moeaframework.core.TypedProperties
org.moeaframework.analysis.sample.Sample
- All Implemented Interfaces:
Referenceable,Copyable<TypedProperties>,Displayable,Formattable<Map.Entry<String,String>>
A single parameter sample.
-
Field Summary
Fields inherited from class org.moeaframework.core.TypedProperties
DEFAULT_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.moeaframework.core.TypedProperties
addAll, addAll, asTabularData, clear, clearAccessedProperties, contains, createScope, equals, getAccessedProperties, getBoolean, getBoolean, getByte, getByte, getByteArray, getByteArray, getDouble, getDouble, getDoubleArray, getDoubleArray, getEnum, getEnum, getEnumFromPartialString, getEnumFromString, getFloat, getFloat, getFloatArray, getFloatArray, getInt, getInt, getIntArray, getIntArray, getLong, getLong, getLongArray, getLongArray, getShort, getShort, getShortArray, getShortArray, getString, getString, getStringArray, getStringArray, getTruncatedInt, getTruncatedInt, getTruncatedLong, getTruncatedLong, getUnaccessedProperties, hashCode, isEmpty, keySet, load, loadBuildProperties, newThreadSafeInstance, of, of, of, of, of, of, of, of, of, of, of, remove, save, save, setBoolean, setByte, setByteArray, setDouble, setDoubleArray, setEnum, setFloat, setFloatArray, setInt, setIntArray, setLong, setLongArray, setShort, setShortArray, setString, setStringArray, size, throwIfUnaccessedProperties, warnIfUnaccessedPropertiesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.moeaframework.util.format.Displayable
display
-
Constructor Details
-
Sample
public Sample()Constructs a new, empty sample.
-
-
Method Details
-
copy
Description copied from interface:CopyableCreates and returns a copy of this object. It is required thatx.copy()is completely independent fromx. This means any method invoked onx.copy()in no way alters the state ofxand vice versa. It is typically the case thatx.copy().getClass() == x.getClass()andx.copy().equals(x).- Specified by:
copyin interfaceCopyable<TypedProperties>- Overrides:
copyin classTypedProperties- Returns:
- the copy
-
get
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
Description copied from interface:ReferenceableReturns the data store reference for this object.- Specified by:
getReferencein interfaceReferenceable- Returns:
- the reference
-