jet
Class IntRange

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

public final class IntRange
extends Object
implements Range<Integer>, Progression<Integer>


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

Field Detail

EMPTY

public static final IntRange EMPTY
Constructor Detail

IntRange

public IntRange(int start,
                int end)
Method Detail

contains

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

contains

public boolean contains(int item)

getStart

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

getEnd

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

getIncrement

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

iterator

public IntIterator iterator()
Specified by:
iterator in interface Iterable<Integer>

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.