public class FloatAbsoluteTemperatureVector extends AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-09-29 14:14:28 +0200 (Tue, 29 Sep 2015) $, @version $Revision: 73 $, by $Author: pknoppers $, initial
version Sep 5, 2015
AbstractFloatVectorAbs.Itr
data
Constructor and Description |
---|
FloatAbsoluteTemperatureVector(float[] values,
AbsoluteTemperatureUnit unit,
StorageType storageType)
Construct a new Absolute Immutable FloatAbsoluteTemperatureVector.
|
FloatAbsoluteTemperatureVector(FloatAbsoluteTemperature[] values,
StorageType storageType)
Construct a new Absolute Immutable FloatAbsoluteTemperatureVector.
|
FloatAbsoluteTemperatureVector(FloatVectorData data,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Immutable FloatAbsoluteTemperatureVector.
|
FloatAbsoluteTemperatureVector(List<Float> values,
AbsoluteTemperatureUnit unit,
StorageType storageType)
Construct a new Absolute Immutable FloatAbsoluteTemperatureVector.
|
FloatAbsoluteTemperatureVector(List<FloatAbsoluteTemperature> values,
StorageType storageType)
Construct a new Absolute Immutable FloatAbsoluteTemperatureVector.
|
FloatAbsoluteTemperatureVector(SortedMap<Integer,Float> values,
AbsoluteTemperatureUnit unit,
int length,
StorageType storageType)
Construct a new Absolute Immutable FloatAbsoluteTemperatureVector.
|
FloatAbsoluteTemperatureVector(SortedMap<Integer,FloatAbsoluteTemperature> values,
int length,
StorageType storageType)
Construct a new Absolute Immutable FloatAbsoluteTemperatureVector.
|
Modifier and Type | Method and Description |
---|---|
protected MutableFloatAbsoluteTemperatureVector |
instantiateMutableType(FloatVectorData dvd,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Mutable FloatVector of the right type.
|
protected FloatAbsoluteTemperature |
instantiateScalar(float value,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Immutable FloatScalar of the right type.
|
protected FloatAbsoluteTemperatureVector |
instantiateTypeAbs(FloatVectorData dvd,
AbsoluteTemperatureUnit unit)
Construct a new Absolute Immutable FloatVector of the right type.
|
protected FloatTemperatureVector |
instantiateTypeRel(FloatVectorData dvd,
TemperatureUnit unit)
Construct a new Relative Immutable FloatVector of the right type.
|
FloatAbsoluteTemperature[] |
toArray()
Return an array of FloatAbsoluteTemperature Scalars from this vector.
|
FloatAbsoluteTemperatureVector |
toDense()
return a dense version of this vector.
|
FloatAbsoluteTemperatureVector |
toSparse()
return a sparse version of this vector.
|
checkUnit, checkUnit, checkUnit, get, iterator, minus, minus, mutable, plus
cardinality, checkIndex, checkSize, checkSize, equals, getData, getInUnit, getInUnit, getSI, getStorageType, getValuesInUnit, getValuesInUnit, getValuesSI, hashCode, size, toString, toString, toString, toString, zSum
expressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnit
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public FloatAbsoluteTemperatureVector(float[] values, AbsoluteTemperatureUnit unit, StorageType storageType) throws ValueException
values
- float[]; the values of the entries in the new Absolute Immutable FloatAbsoluteTemperatureVectorunit
- U; the unit of the new Absolute Immutable FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic FloatAbsoluteTemperatureVector(List<Float> values, AbsoluteTemperatureUnit unit, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Absolute Immutable FloatAbsoluteTemperatureVectorunit
- U; the unit of the new Absolute Immutable FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullpublic FloatAbsoluteTemperatureVector(FloatAbsoluteTemperature[] values, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[]; the values of the entries in the new Absolute Immutable
FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic FloatAbsoluteTemperatureVector(List<FloatAbsoluteTemperature> values, StorageType storageType) throws ValueException
values
- List; the values of the entries in the new Absolute Immutable FloatAbsoluteTemperatureVectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic FloatAbsoluteTemperatureVector(SortedMap<Integer,FloatAbsoluteTemperature> values, int length, StorageType storageType) throws ValueException
values
- FloatScalar.Rel<U>[]; the values of the entries in the new Absolute Sparse Mutable
FloatAbsoluteTemperatureVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values has zero entriespublic FloatAbsoluteTemperatureVector(SortedMap<Integer,Float> values, AbsoluteTemperatureUnit unit, int length, StorageType storageType) throws ValueException
values
- Map; the map of indexes to values of the Absolute Sparse Mutable FloatAbsoluteTemperatureVectorunit
- U; the unit of the new Absolute Sparse Mutable FloatAbsoluteTemperatureVectorlength
- the size of the vectorstorageType
- the data type to use (e.g., DENSE or SPARSE)ValueException
- when values is nullFloatAbsoluteTemperatureVector(FloatVectorData data, AbsoluteTemperatureUnit unit)
data
- an internal data objectunit
- the unitprotected final FloatAbsoluteTemperatureVector instantiateTypeAbs(FloatVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateTypeAbs
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final FloatTemperatureVector instantiateTypeRel(FloatVectorData dvd, TemperatureUnit unit)
instantiateTypeRel
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final MutableFloatAbsoluteTemperatureVector instantiateMutableType(FloatVectorData dvd, AbsoluteTemperatureUnit unit)
instantiateMutableType
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
dvd
- an internal data objectunit
- the unitprotected final FloatAbsoluteTemperature instantiateScalar(float value, AbsoluteTemperatureUnit unit)
instantiateScalar
in class AbstractFloatVectorAbs<AbsoluteTemperatureUnit,TemperatureUnit,FloatAbsoluteTemperatureVector,FloatTemperatureVector,MutableFloatAbsoluteTemperatureVector,FloatAbsoluteTemperature>
value
- the valueunit
- the unitpublic final FloatAbsoluteTemperatureVector toDense()
public final FloatAbsoluteTemperatureVector toSparse()
public FloatAbsoluteTemperature[] toArray()
RuntimeException
- wrapping a ValueException on error getting one of the valuesCopyright © 2015–2018 Delft University of Technology. All rights reserved.