public class MutableFloatMoneyPerLengthVector extends AbstractMutableFloatVectorRel<MoneyPerLengthUnit,FloatMoneyPerLengthVector,MutableFloatMoneyPerLengthVector,FloatMoneyPerLength>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
AbstractFloatVectorRel.Itrdata| Constructor and Description |
|---|
MutableFloatMoneyPerLengthVector(float[] values,
MoneyPerLengthUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float MoneyPerLengthVector.
|
MutableFloatMoneyPerLengthVector(FloatMoneyPerLength[] values,
StorageType storageType)
Construct a new Relative Immutable Float MoneyPerLengthVector.
|
MutableFloatMoneyPerLengthVector(FloatVectorData data,
MoneyPerLengthUnit unit) |
MutableFloatMoneyPerLengthVector(List<Float> values,
MoneyPerLengthUnit unit,
StorageType storageType)
Construct a new Relative Immutable Float MoneyPerLengthVector.
|
MutableFloatMoneyPerLengthVector(List<FloatMoneyPerLength> values,
StorageType storageType)
Construct a new Relative Immutable Float MoneyPerLengthVector.
|
MutableFloatMoneyPerLengthVector(SortedMap<Integer,Float> values,
MoneyPerLengthUnit unit,
int length,
StorageType storageType)
Construct a new Relative Immutable Float MoneyPerLengthVector.
|
MutableFloatMoneyPerLengthVector(SortedMap<Integer,FloatMoneyPerLength> values,
int length,
StorageType storageType)
Construct a new Relative Immutable Float MoneyPerLengthVector.
|
| Modifier and Type | Method and Description |
|---|---|
protected MutableFloatMoneyPerLengthVector |
instantiateMutableType(FloatVectorData dvd,
MoneyPerLengthUnit unit)
Construct a new Relative Mutable FloatVector of the right type.
|
protected FloatMoneyPerLength |
instantiateScalar(float value,
MoneyPerLengthUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
protected FloatMoneyPerLengthVector |
instantiateType(FloatVectorData dvd,
MoneyPerLengthUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatMoneyPerLength[] |
toArray()
Return an array of FloatMoneyPerLength Scalars from this vector.
|
MutableFloatMoneyPerLengthVector |
toDense()
return a dense version of this vector.
|
MutableFloatMoneyPerLengthVector |
toSparse()
return a sparse version of this vector.
|
abs, assign, ceil, checkCopyOnWrite, copy, decrementBy, decrementBy, decrementBy, divideBy, divideBy, divideBy, floor, immutable, incrementBy, incrementBy, incrementBy, multiplyBy, multiplyBy, multiplyBy, mutable, neg, normalize, rint, round, set, setCopyOnWrite, setInUnit, setSIcheckUnit, checkUnit, checkUnit, divide, get, iterator, minus, plus, timescardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, size, toString, toString, toString, toString, zSumexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWcardinality, getInUnit, getInUnit, getSI, getValuesInUnit, getValuesInUnit, getValuesSI, size, toString, toString, toString, toString, zSumforEach, spliteratorpublic MutableFloatMoneyPerLengthVector(float[] values,
MoneyPerLengthUnit unit,
StorageType storageType)
throws ValueException
values - float[]; the values of the entries in the new Relative Immutable Float MoneyPerLengthVectorunit - MoneyPerLengthUnit; the unit of the new Relative Immutable Float MoneyPerLengthVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatMoneyPerLengthVector(List<Float> values, MoneyPerLengthUnit unit, StorageType storageType) throws ValueException
values - List<Float>; the values of the entries in the new Relative Immutable Float MoneyPerLengthVectorunit - MoneyPerLengthUnit; the unit of the new Relative Immutable Float MoneyPerLengthVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullpublic MutableFloatMoneyPerLengthVector(FloatMoneyPerLength[] values, StorageType storageType) throws ValueException
values - FloatMoneyPerLength[]; the values of the entries in the new Relative Immutable Float MoneyPerLengthVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatMoneyPerLengthVector(List<FloatMoneyPerLength> values, StorageType storageType) throws ValueException
values - List<FloatMoneyPerLength>; the values of the entries in the new Relative Immutable Float
MoneyPerLengthVectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatMoneyPerLengthVector(SortedMap<Integer,FloatMoneyPerLength> values, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, FloatMoneyPerLength>; the values of the entries in the new Relative Sparse Mutable
Float MoneyPerLengthVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values has zero entriespublic MutableFloatMoneyPerLengthVector(SortedMap<Integer,Float> values, MoneyPerLengthUnit unit, int length, StorageType storageType) throws ValueException
values - SortedMap<Integer, Float>; the map of indexes to values of the Relative Sparse Mutable Float
MoneyPerLengthVectorunit - MoneyPerLengthUnit; the unit of the new Relative Sparse Mutable Float MoneyPerLengthVectorlength - int; the size of the vectorstorageType - StorageType; the data type to use (e.g., DENSE or SPARSE)ValueException - when values is nullMutableFloatMoneyPerLengthVector(FloatVectorData data, MoneyPerLengthUnit unit)
data - FloatVectorData; an internal data objectunit - MoneyPerLengthUnit; the unitprotected final FloatMoneyPerLengthVector instantiateType(FloatVectorData dvd, MoneyPerLengthUnit unit)
instantiateType in class AbstractFloatVectorRel<MoneyPerLengthUnit,FloatMoneyPerLengthVector,MutableFloatMoneyPerLengthVector,FloatMoneyPerLength>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final MutableFloatMoneyPerLengthVector instantiateMutableType(FloatVectorData dvd, MoneyPerLengthUnit unit)
instantiateMutableType in class AbstractFloatVectorRel<MoneyPerLengthUnit,FloatMoneyPerLengthVector,MutableFloatMoneyPerLengthVector,FloatMoneyPerLength>dvd - FloatVectorData; an internal data objectunit - U; the unitprotected final FloatMoneyPerLength instantiateScalar(float value, MoneyPerLengthUnit unit)
instantiateScalar in class AbstractFloatVectorRel<MoneyPerLengthUnit,FloatMoneyPerLengthVector,MutableFloatMoneyPerLengthVector,FloatMoneyPerLength>value - float; the valueunit - U; the unitpublic final MutableFloatMoneyPerLengthVector toDense()
public final MutableFloatMoneyPerLengthVector toSparse()
public FloatMoneyPerLength[] toArray()
RuntimeException - wrapping a ValueException on error getting one of the valuesCopyright © 2015–2019 Delft University of Technology. All rights reserved.