jet
Class ShortRange

java.lang.Object
  extended by jet.ShortRange
All Implemented Interfaces:
Iterable<Short>, Range<Short>, ShortIterable

public final class ShortRange
extends Object
implements Range<Short>, ShortIterable


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

ShortRange

public ShortRange(short startValue,
                  int count)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

step

public ShortIterator step(int step)

contains

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

contains

public boolean contains(short item)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getIsReversed

public boolean getIsReversed()

getStart

public short getStart()

getIteratorStart

public int getIteratorStart()

getEnd

public short getEnd()

getSize

public int getSize()

iterator

public ShortIterator iterator()
Specified by:
iterator in interface Iterable<Short>
Specified by:
iterator in interface ShortIterable

count

public static ShortRange count(int length)


Copyright © 2012. All Rights Reserved.