jet
Class ByteRange
java.lang.Object
jet.ByteRange
- All Implemented Interfaces:
- Iterable<Byte>, ByteIterable, Range<Byte>
public final class ByteRange
- extends Object
- implements Range<Byte>, ByteIterable
Constructor Summary |
ByteRange(byte startValue,
int count)
|
EMPTY
public static final ByteRange EMPTY
ByteRange
public ByteRange(byte startValue,
int count)
toString
public String toString()
- Overrides:
toString
in class Object
contains
public boolean contains(Byte item)
- Specified by:
contains
in interface Range<Byte>
contains
public boolean contains(byte 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 byte getStart()
getIteratorStart
public byte getIteratorStart()
getEnd
public byte getEnd()
getSize
public int getSize()
step
public ByteIterator step(int step)
iterator
public ByteIterator iterator()
- Specified by:
iterator
in interface Iterable<Byte>
- Specified by:
iterator
in interface ByteIterable
count
public static ByteRange count(int length)
Copyright © 2012. All Rights Reserved.