jopt.csp.util
Interface IntervalIterator


public interface IntervalIterator

Iterator for numbers


Method Summary
 double endDouble()
          Returns end of current double interval
 float endFloat()
          Returns end of current float interval
 int endInt()
          Returns end of current int interval
 long endLong()
          Returns end of current long interval
 boolean hasNext()
          Returns true if another value exists
 double nextDouble()
          Returns start of next double interval
 float nextFloat()
          Returns start of next float interval
 int nextInt()
          Returns start of next int interval
 long nextLong()
          Returns start of next long interval
 

Method Detail

hasNext

public boolean hasNext()
Returns true if another value exists


nextInt

public int nextInt()
Returns start of next int interval


nextLong

public long nextLong()
Returns start of next long interval


nextFloat

public float nextFloat()
Returns start of next float interval


nextDouble

public double nextDouble()
Returns start of next double interval


endInt

public int endInt()
Returns end of current int interval


endLong

public long endLong()
Returns end of current long interval


endFloat

public float endFloat()
Returns end of current float interval


endDouble

public double endDouble()
Returns end of current double interval