public final class NeighbourList extends java.lang.Object implements ListOfHash
Constructor and Description |
---|
NeighbourList(int depth) |
Modifier and Type | Method and Description |
---|---|
void |
arraycopy(int srcPos,
long[] dest,
int destPos,
int length)
Similar to
System.arraycopy(Object, int, Object, int, int) except that the source
is the internal list. |
void |
clear() |
boolean |
contains(CompassPoint.MainWind mainWind) |
long |
get(CompassPoint.MainWind mainWind) |
long |
get(int i)
Returns the element at the given index
i in the list. |
CompassPoint.MainWind |
getDirection(int i) |
FlatHashIterator |
iterator() |
int |
size()
Returns the current number of elements in the flat list.
|
void |
sortByHashAsc() |
public void clear()
public boolean contains(CompassPoint.MainWind mainWind)
public long get(CompassPoint.MainWind mainWind)
public void sortByHashAsc()
public int size()
ListOfHash
size
in interface ListOfHash
public long get(int i)
ListOfHash
i
in the list.get
in interface ListOfHash
i
- index in the list of the element to be returned.i
in the list.public CompassPoint.MainWind getDirection(int i)
public void arraycopy(int srcPos, long[] dest, int destPos, int length)
ListOfHash
System.arraycopy(Object, int, Object, int, int)
except that the source
is the internal list.arraycopy
in interface ListOfHash
srcPos
- see System.arraycopy(Object, int, Object, int, int)
dest
- see System.arraycopy(Object, int, Object, int, int)
destPos
- see System.arraycopy(Object, int, Object, int, int)
length
- see System.arraycopy(Object, int, Object, int, int)
public FlatHashIterator iterator()
iterator
in interface FlatHashIterable
Copyright © 2018 F.-X. Pineau, CDS, Observatoire Astronomique de Strasbourg, Universite de Strasbourg, CNRS. All Rights Reserved.