Package org.ojalgo.structure
Class Keyed1D<K,N extends Comparable<N>>
java.lang.Object
org.ojalgo.structure.Keyed1D<K,N>
- All Implemented Interfaces:
Structure1D
-
Nested Class Summary
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
long
count()
The total number of elements in this structure.double
doubleValue
(K key) float
floatValue
(K key) int
long
void
void
void
void
void
void
void
set
(K key, Comparable<?> value) short
shortValue
(K key) int
size()
The total number of elements in this structure.
-
Field Details
-
myMapper
-
myStructure
-
-
Constructor Details
-
Keyed1D
Keyed1D(Access1D<N> structure, Structure1D.IndexMapper<K> indexMapper)
-
-
Method Details
-
byteValue
-
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
-
floatValue
-
get
-
intValue
-
longValue
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
shortValue
-
size
public int size()Description copied from interface:Structure1D
The total number of elements in this structure.- Specified by:
size
in interfaceStructure1D
-