public class LongIterable extends java.lang.Object implements java.lang.Iterable<java.lang.Long>
| Constructor and Description |
|---|
LongIterable()
Constructor.
|
LongIterable(long ub)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getUpperBound()
Get the upper bound for the iterator.
|
java.util.Iterator<java.lang.Long> |
iterator()
Get an iterator over Long.
|
void |
setAllIterator()
Set the iteration algorithm to all elements.
|
void |
setNonNegativeIterator()
Set the iteration algorithm to non-negative elements.
|
void |
setUpperBound(long ub)
Set the upper bound for the iterator.
|
public LongIterable()
public LongIterable(long ub)
public void setUpperBound(long ub)
ub - an upper bound for the iterator elements.public long getUpperBound()
public void setAllIterator()
public void setNonNegativeIterator()
public java.util.Iterator<java.lang.Long> iterator()
iterator in interface java.lang.Iterable<java.lang.Long>