jet
Class IntRange

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

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


Field Summary
static IntRange EMPTY
           
 
Constructor Summary
IntRange(int startValue, int count)
           
 
Method Summary
 boolean contains(int item)
           
 boolean contains(Integer item)
           
static IntRange count(int length)
           
 boolean equals(Object o)
           
 int getEnd()
           
 boolean getIsReversed()
           
 int getIteratorStart()
           
 int getSize()
           
 int getStart()
           
 int hashCode()
           
 IntIterator iterator()
           
 IntIterator step(int step)
           
 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 startValue,
                int count)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

contains

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

contains

public boolean contains(int item)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

step

public IntIterator step(int step)

getIsReversed

public boolean getIsReversed()

getIteratorStart

public int getIteratorStart()

getStart

public int getStart()

getEnd

public int getEnd()

getSize

public int getSize()

iterator

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

count

public static IntRange count(int length)


Copyright © 2012. All Rights Reserved.