Package org.ojalgo.type.keyvalue
Class IndexedMap.MappedPrimitives<K>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.ojalgo.type.keyvalue.IndexedMap<K,PrimitiveNumber>
-
- org.ojalgo.type.keyvalue.IndexedMap.MappedPrimitives<K>
-
- All Implemented Interfaces:
java.util.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
java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Access1D
Access1D.Aggregatable<N extends java.lang.Comparable<N>>, Access1D.Collectable<N extends java.lang.Comparable<N>,R extends Mutate1D>, Access1D.ElementView<N extends java.lang.Comparable<N>>, Access1D.SelectionView<N extends java.lang.Comparable<N>>, Access1D.Sliceable<N extends java.lang.Comparable<N>>, Access1D.Visitable<N extends java.lang.Comparable<N>>
-
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.ojalgo.structure.Mutate1D
Mutate1D.Fillable<N extends java.lang.Comparable<N>>, Mutate1D.Mixable<N extends java.lang.Comparable<N>>, Mutate1D.Modifiable<N extends java.lang.Comparable<N>>, Mutate1D.ModifiableReceiver<N extends java.lang.Comparable<N>>, Mutate1D.Receiver<N extends java.lang.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 Modifier and Type Field Description private EntrySet.KeyedPrimitives<K>
myEntries
-
Constructor Summary
Constructors Constructor Description MappedPrimitives(EntrySet.KeyedPrimitives<K> entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue(int index)
long
count()
The total number of elements in this structure.double
doubleValue(int index)
float
floatValue(int index)
PrimitiveNumber
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, java.lang.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 Detail
-
myEntries
private final EntrySet.KeyedPrimitives<K> myEntries
-
-
Constructor Detail
-
MappedPrimitives
MappedPrimitives(EntrySet.KeyedPrimitives<K> entries)
-
-
Method Detail
-
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
public PrimitiveNumber get(long index)
-
set
public void set(long index, java.lang.Comparable<?> value)
-
shortValue
public short shortValue(int index)
- Specified by:
shortValue
in interfaceAccess1D<K>
-
-