- 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 bytebyteValue(int index)longcount()The total number of elements in this structure.doubledoubleValue(int index)floatfloatValue(int index)PrimitiveNumberget(long index)intintValue(int index)longlongValue(int index)voidset(int index, double value)voidset(int index, float value)voidset(long index, java.lang.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, 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, asList, axpy, byteValue, dot, doubleValue, elements, floatValue, intValue, longValue, nonzeros, select, shortValue, supplyTo, toList, 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: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
public PrimitiveNumber get(long index)
-
set
public void set(long index, java.lang.Comparable<?> value)
-
shortValue
public short shortValue(int index)
- Specified by:
shortValuein interfaceAccess1D<K>
-
-