Class IndexedMap.MappedPrimitives<K>
java.lang.Object
java.util.AbstractMap<K, PrimitiveNumber>
org.ojalgo.type.keyvalue.IndexedMap<K, PrimitiveNumber>
org.ojalgo.type.keyvalue.IndexedMap.MappedPrimitives<K>
- All Implemented Interfaces:
Map<K, PrimitiveNumber>, Access1D<PrimitiveNumber>, Mutate1D, Structure1D, Paired<K, PrimitiveNumber>
- Enclosing class:
IndexedMap<K,V>
public static final class IndexedMap.MappedPrimitives<K>
extends IndexedMap<K, PrimitiveNumber>
implements Access1D<PrimitiveNumber>, Mutate1D
-
Nested Class Summary
Nested classes/interfaces inherited from class IndexedMap
IndexedMap.MappedPrimitives<K>Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface Access1D
Access1D.Aggregatable<N>, Access1D.Collectable<N,R>, Access1D.ElementView<N>, Access1D.SelectionView<N>, Access1D.Sliceable<N>, Access1D.Visitable<N> Nested classes/interfaces inherited from interface Mutate1D
Mutate1D.Fillable<N>, Mutate1D.Mixable<N>, Mutate1D.Modifiable<N>, Mutate1D.ModifiableReceiver<N>, Mutate1D.Receiver<N>, Mutate1D.SortableNested classes/interfaces inherited from interface Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S,B>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytebyteValue(int index) longcount()The total number of elements in this structure.doubledoubleValue(int index) floatfloatValue(int index) get(long index) intintValue(int index) longlongValue(int index) voidset(int index, double value) voidset(int index, float value) voidset(long index, Comparable<?> value) shortshortValue(int index) Methods inherited from class IndexedMap
entrySet, getKey, getPair, getValue, of, of, of, of, of, of, of, of, sizeMethods inherited from class AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, toString, valuesMethods inherited from interface Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, dot, doubleValue, elements, floatValue, intValue, longValue, nonzeros, select, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface Structure1D
size
-
Field Details
-
myEntries
-
-
Constructor Details
-
MappedPrimitives
MappedPrimitives(EntrySet.KeyedPrimitives<K> entries)
-
-
Method Details
-
byteValue
-
count
public long count()Description copied from interface:Structure1DThe total number of elements in this structure.You only need to implement this method if the structure can contain more than Integer.MAX_VALUE elements.
- Specified by:
countin interfaceStructure1D
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValuein interfaceAccess1D<K>
-
floatValue
public float floatValue(int index) - Specified by:
floatValuein interfaceAccess1D<K>
-
get
-
intValue
-
longValue
-
set
-
set
-
set
-
shortValue
public short shortValue(int index) - Specified by:
shortValuein interfaceAccess1D<K>
-