jet
Class LongRange

java.lang.Object
  extended by jet.LongRange
All Implemented Interfaces:
Iterable<Long>, LongIterable, Range<Long>

public final class LongRange
extends Object
implements Range<Long>, LongIterable


Field Summary
static LongRange EMPTY
           
 
Constructor Summary
LongRange(long startValue, long count)
           
 
Method Summary
 boolean contains(long item)
           
 boolean contains(Long item)
           
static LongRange count(int length)
           
 boolean equals(Object o)
           
 long getEnd()
           
 boolean getIsReversed()
           
 long getIteratorStart()
           
 long getSize()
           
 long getStart()
           
 int hashCode()
           
 LongIterator iterator()
           
 LongIterator step(long step)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final LongRange EMPTY
Constructor Detail

LongRange

public LongRange(long startValue,
                 long count)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

step

public LongIterator step(long step)

contains

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

contains

public boolean contains(long 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 long getStart()

getIteratorStart

public long getIteratorStart()

getEnd

public long getEnd()

getSize

public long getSize()

iterator

public LongIterator iterator()
Specified by:
iterator in interface Iterable<Long>
Specified by:
iterator in interface LongIterable

count

public static LongRange count(int length)


Copyright © 2012. All Rights Reserved.