Package cds.healpix
Interface ListOfHash
- All Superinterfaces:
FlatHashIterable
- All Known Implementing Classes:
FlatHashList,NeighbourList
Interface defining a simple flat list of hash values (we do not
use a Java List to avoid autoboxing.
- Author:
- F.-X. Pineau
-
Method Summary
Modifier and TypeMethodDescriptionvoidarraycopy(int srcPos, long[] dest, int destPos, int length) Similar toSystem.arraycopy(Object, int, Object, int, int)except that the source is the internal list.longget(int i) Returns the element at the given indexiin the list.intsize()Returns the current number of elements in the flat list.Methods inherited from interface cds.healpix.FlatHashIterable
iterator
-
Method Details
-
size
int size()Returns the current number of elements in the flat list.- Returns:
- the current number of elements in the flat list.
-
get
long get(int i) Returns the element at the given indexiin the list.- Parameters:
i- index in the list of the element to be returned.- Returns:
- the element at the given index
iin the list.
-
arraycopy
void arraycopy(int srcPos, long[] dest, int destPos, int length) Similar toSystem.arraycopy(Object, int, Object, int, int)except that the source is the internal list.- Parameters:
srcPos- seeSystem.arraycopy(Object, int, Object, int, int)dest- seeSystem.arraycopy(Object, int, Object, int, int)destPos- seeSystem.arraycopy(Object, int, Object, int, int)length- seeSystem.arraycopy(Object, int, Object, int, int)
-