healpix.core.base.set
Interface LongRangeIterator


public interface LongRangeIterator

An iterator over ranges which does not require object creation

!!Implementation must return sorted ranges in iterator!! * @author Jan Kotek


Method Summary
 long first()
           
 long last()
           
 boolean moveToNext()
          move to next Range in iterator
 

Method Detail

moveToNext

boolean moveToNext()
move to next Range in iterator

Returns:
true if more ranges are in iterator, false if iterator reached end

first

long first()
Returns:
first item in current range (inclusive)
Throws:
NoSuchElementException - if no more elements are found

last

long last()
Returns:
last item in current range (inclusive)
Throws:
NoSuchElementException - if no more elements are found

"Built from revision exported"