jet
Class DoubleRange

java.lang.Object
  extended by jet.DoubleRange
All Implemented Interfaces:
Iterable<Double>, Progression<Double>, Range<Double>

public final class DoubleRange
extends Object
implements Range<Double>, Progression<Double>


Field Summary
static DoubleRange EMPTY
           
 
Constructor Summary
DoubleRange(double start, double end)
           
 
Method Summary
 boolean contains(double item)
           
 boolean contains(Double item)
           
 boolean equals(Object o)
           
 Double getEnd()
           
 Double getIncrement()
           
 Double getStart()
           
 int hashCode()
           
 DoubleIterator iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final DoubleRange EMPTY
Constructor Detail

DoubleRange

public DoubleRange(double start,
                   double end)
Method Detail

contains

public boolean contains(Double item)
Specified by:
contains in interface Range<Double>

contains

public boolean contains(double item)

getStart

public Double getStart()
Specified by:
getStart in interface Progression<Double>
Specified by:
getStart in interface Range<Double>

getEnd

public Double getEnd()
Specified by:
getEnd in interface Progression<Double>
Specified by:
getEnd in interface Range<Double>

getIncrement

public Double getIncrement()
Specified by:
getIncrement in interface Progression<Double>

iterator

public DoubleIterator iterator()
Specified by:
iterator in interface Iterable<Double>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.