Class IndexedMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.ojalgo.type.keyvalue.IndexedMap<K,V>
- Direct Known Subclasses:
IndexedMap.MappedPrimitives
Wrap two arrays (of keys and values) and treat the result as a
Map. There is no check that the
supplied array of keys does not contain duplicates – the index is the real "key".-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()getKey(int index) getPair(int index) getValue(int index) static <K extends Enum<K>>
IndexedMap.MappedPrimitives<K> static <K extends Enum<K>>
IndexedMap.MappedPrimitives<K> static <K extends Enum<K>>
IndexedMap.MappedPrimitives<K> static <K extends Enum<K>>
IndexedMap.MappedPrimitives<K> static <K extends Enum<K>>
IndexedMap.MappedPrimitives<K> static <K extends Enum<K>>
IndexedMap.MappedPrimitives<K> static <K extends Enum<K>, V>
IndexedMap<K, V> static <K extends Enum<K>, V>
IndexedMap<K, V> intsize()Methods inherited from class AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
myEntrySet
-
-
Constructor Details
-
IndexedMap
-
-
Method Details
-
of
public static <K extends Enum<K>> IndexedMap.MappedPrimitives<K> of(Class<K> keyType, byte defaultValue) -
of
-
of
public static <K extends Enum<K>> IndexedMap.MappedPrimitives<K> of(Class<K> keyType, double defaultValue) -
of
public static <K extends Enum<K>> IndexedMap.MappedPrimitives<K> of(Class<K> keyType, float defaultValue) -
of
public static <K extends Enum<K>> IndexedMap.MappedPrimitives<K> of(Class<K> keyType, int defaultValue) -
of
public static <K extends Enum<K>> IndexedMap.MappedPrimitives<K> of(Class<K> keyType, long defaultValue) -
of
public static <K extends Enum<K>> IndexedMap.MappedPrimitives<K> of(Class<K> keyType, short defaultValue) -
of
-
entrySet
-
getKey
-
getPair
-
getValue
-
size
-