jet
Class ShortRange

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

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


Field Summary
static ShortRange EMPTY
           
 
Constructor Summary
ShortRange(short start, short end)
           
 
Method Summary
 boolean contains(short item)
           
 boolean contains(Short item)
           
 boolean equals(Object o)
           
 Short getEnd()
           
 Integer getIncrement()
           
 Short getStart()
           
 int hashCode()
           
 ShortIterator iterator()
           
 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 start,
                  short end)
Method Detail

contains

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

contains

public boolean contains(short item)

getStart

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

getEnd

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

getIncrement

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

iterator

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

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.