jet
Class ShortRange
java.lang.Object
jet.ShortRange
- All Implemented Interfaces:
- Iterable<Short>, Progression<Short>, Range<Short>
public final class ShortRange
- extends Object
- implements Range<Short>, Progression<Short>
Constructor Summary |
ShortRange(short start,
short end)
|
EMPTY
public static final ShortRange EMPTY
ShortRange
public ShortRange(short start,
short end)
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.