Package org.ojalgo.type.keyvalue
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 org.ojalgo.type.keyvalue.IndexedMap
IndexedMap.MappedPrimitives<K>
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends Comparable<N>>, Access1D.Collectable<N extends Comparable<N>,
R extends Mutate1D>, Access1D.ElementView<N extends Comparable<N>>, Access1D.SelectionView<N extends Comparable<N>>, Access1D.Sliceable<N extends Comparable<N>>, Access1D.Visitable<N extends Comparable<N>> Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends Comparable<N>>, Mutate1D.Mixable<N extends Comparable<N>>, Mutate1D.Modifiable<N extends Comparable<N>>, Mutate1D.ModifiableReceiver<N extends Comparable<N>>, Mutate1D.Receiver<N extends Comparable<N>>, Mutate1D.Sortable
Nested classes/interfaces inherited from interface org.ojalgo.structure.Structure1D
Structure1D.BasicMapper<T>, Structure1D.IndexMapper<T>, Structure1D.IntIndex, Structure1D.Logical<S extends Structure1D,
B extends Structure1D.Logical<S, B>>, Structure1D.LongIndex, Structure1D.LoopCallback -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
byteValue
(int index) long
count()
The total number of elements in this structure.double
doubleValue
(int index) float
floatValue
(int index) get
(long index) int
intValue
(int index) long
longValue
(int index) void
set
(int index, double value) void
set
(int index, float value) void
set
(long index, Comparable<?> value) short
shortValue
(int index) Methods inherited from class org.ojalgo.type.keyvalue.IndexedMap
entrySet, getKey, getPair, getValue, of, of, of, of, of, of, of, of, size
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, axpy, byteValue, dot, doubleValue, elements, floatValue, intValue, longValue, nonzeros, select, shortValue, supplyTo, toRawCopy1D
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, set
Methods inherited from interface org.ojalgo.structure.Structure1D
size
-
Field Details
-
myEntries
-
-
Constructor Details
-
MappedPrimitives
MappedPrimitives(EntrySet.KeyedPrimitives<K> entries)
-
-
Method Details
-
byteValue
public byte byteValue(int index) -
count
public long count()Description copied from interface:Structure1D
The 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:
count
in interfaceStructure1D
-
doubleValue
public double doubleValue(int index) - Specified by:
doubleValue
in interfaceAccess1D<K>
-
floatValue
public float floatValue(int index) - Specified by:
floatValue
in interfaceAccess1D<K>
-
get
-
intValue
public int intValue(int index) -
longValue
public long longValue(int index) -
set
public void set(int index, double value) -
set
public void set(int index, float value) -
set
-
shortValue
public short shortValue(int index) - Specified by:
shortValue
in interfaceAccess1D<K>
-