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 specializedValueObject
to deal withMeasuredFactor
s.
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 theMeasuredValuesCompositeValueObject
class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Type
getType()
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 theMeasuredValuesCompositeValueObject
class.- Parameters:
value
- AnIterable
of 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:
getValue
in classValueObject
- Returns:
- The (composite) value of this instance, expressed as a
Collection
ofDouble
s.
-
-