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.SortableNested 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 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 org.ojalgo.type.keyvalue.IndexedMap
entrySet, getKey, getPair, getValue, of, of, of, of, of, of, of, of, sizeMethods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.structure.Access1D
asCollectable1D, asKeyed1D, asList, axpy, byteValue, dot, doubleValue, elements, floatValue, intValue, longValue, nonzeros, select, shortValue, supplyTo, toList, toRawCopy1DMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface org.ojalgo.structure.Mutate1D
reset, set, set, set, set, set, set, set, set, set, setMethods 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: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
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:
shortValuein interfaceAccess1D<K>
-