Class MeasuredValuesCompositeValueObject
- java.lang.Object
-
- org.vedantatree.expressionoasis.types.ValueObject
-
- de.fzi.power.interpreter.calculator.expressionoasis.custom.MeasuredValuesCompositeValueObject
-
public final class MeasuredValuesCompositeValueObject extends ValueObject
This class is a specializedValueObjectto deal withMeasuredFactors.
Distinctive feature of this value object is its composite character, that is, it can hold more than one value.
-
-
Constructor Summary
Constructors Constructor Description MeasuredValuesCompositeValueObject(Iterable<Double> value)Initializes a new instance of theMeasuredValuesCompositeValueObjectclass.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypegetType()Gets the type which all instances of this class have.Iterable<Double>getValue()Gets the value-
Methods inherited from class org.vedantatree.expressionoasis.types.ValueObject
getValueType, toString
-
-
-
-
Constructor Detail
-
MeasuredValuesCompositeValueObject
public MeasuredValuesCompositeValueObject(Iterable<Double> value)
Initializes a new instance of theMeasuredValuesCompositeValueObjectclass.- Parameters:
value- AnIterableof all values, each of which related to a measured value/factor.- Throws:
NullPointerException- In case the given iterable isnull.
-
-
Method Detail
-
getValue
public Iterable<Double> getValue()
Gets the value- Overrides:
getValuein classValueObject- Returns:
- The (composite) value of this instance, expressed as a
CollectionofDoubles.
-
-