Package cds.healpix
Interface FlatHashIterator
- All Superinterfaces:
HierarchyItem
Define an iterator over the primitive type 'long'.
We do this because Iterators in Java can have Object generic types, not primitive types, and
we want to avoid auto-boxing for performances reasons.
Additionally, we use this interface to iterate over hashes of a same depth given by
the
HierarchyItem.depth()
method.- Author:
- F.-X. Pineau
-
Method Summary
Methods inherited from interface cds.healpix.HierarchyItem
depth
-
Method Details
-
hasNext
boolean hasNext()Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifnext()
would return an element rather than throwing an exception.)- Returns:
true
if the iteration has more elements
-
next
long next()Returns the next element in the iteration.- Returns:
- the next element in the iteration.
-