Package org.ddogleg.clustering.misc
Class ListAccessor<P>
java.lang.Object
org.ddogleg.clustering.misc.ListAccessor<P>
- All Implemented Interfaces:
LArrayAccessor<P>
Wrapper around
List
for LArrayAccessor
.-
Constructor Details
-
ListAccessor
-
-
Method Details
-
getTemp
Description copied from interface:LArrayAccessor
Returns an instance of P which has the value of the element at 'index'. Note that the accessor will own the data type which is returned and can modify it on the next call.This design is intended to be efficient when a massive array that's compressed and a very small array which is not compressed is used.
- Specified by:
getTemp
in interfaceLArrayAccessor<P>
-
getCopy
Description copied from interface:LArrayAccessor
Copies the element at 'index' into 'dst'. Only use if a copy is required.- Specified by:
getCopy
in interfaceLArrayAccessor<P>
-
copy
Description copied from interface:LArrayAccessor
Copies src into dst- Specified by:
copy
in interfaceLArrayAccessor<P>
-
size
public int size()Description copied from interface:LArrayAccessor
Number of elements in the set- Specified by:
size
in interfaceLArrayAccessor<P>
-
getElementType
Description copied from interface:LArrayAccessor
Data type of element- Specified by:
getElementType
in interfaceLArrayAccessor<P>
-