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:LArrayAccessorReturns 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:
getTempin interfaceLArrayAccessor<P>
-
getCopy
Description copied from interface:LArrayAccessorCopies the element at 'index' into 'dst'. Only use if a copy is required.- Specified by:
getCopyin interfaceLArrayAccessor<P>
-
copy
Description copied from interface:LArrayAccessorCopies src into dst- Specified by:
copyin interfaceLArrayAccessor<P>
-
size
public int size()Description copied from interface:LArrayAccessorNumber of elements in the set- Specified by:
sizein interfaceLArrayAccessor<P>
-
getElementType
Description copied from interface:LArrayAccessorData type of element- Specified by:
getElementTypein interfaceLArrayAccessor<P>
-