|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.internal.LongRange
public abstract class LongRange
A range of longs.
Behaves as a readonly collection of longs.
Nested Class Summary | |
---|---|
static class |
LongRange.Ascending
Ascending long range. |
static class |
LongRange.Descending
Descending long range. |
Field Summary | |
---|---|
protected long |
max
The upper boundary. |
protected long |
min
The lower boundary. |
Constructor Summary | |
---|---|
protected |
LongRange(long from,
long to)
Creates a new range. |
Method Summary | ||
---|---|---|
boolean |
add(Long e)
|
|
boolean |
addAll(Collection<? extends Long> c)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
static LongRange |
create(long from,
long to)
Creates a range, ascending or descending depending on boundaries order. |
|
boolean |
equals(Object obj)
|
|
long |
getMax()
Gets the interval maximum value. |
|
long |
getMin()
Gets the interval minimum value. |
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
abstract Iterator<Long> |
iterator()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] array)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final long min
protected final long max
Constructor Detail |
---|
protected LongRange(long from, long to)
from
- the lower inclusive boundaryto
- the higher inclusive boundaryMethod Detail |
---|
public static LongRange create(long from, long to)
from
- the lower inclusive boundaryto
- the higher inclusive boundary
public long getMin()
public long getMax()
public int hashCode()
hashCode
in interface Collection<Long>
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface Collection<Long>
equals
in class Object
public abstract Iterator<Long> iterator()
iterator
in interface Iterable<Long>
iterator
in interface Collection<Long>
public int size()
size
in interface Collection<Long>
public boolean isEmpty()
isEmpty
in interface Collection<Long>
public boolean contains(Object o)
contains
in interface Collection<Long>
public Object[] toArray()
toArray
in interface Collection<Long>
public <T> T[] toArray(T[] array)
toArray
in interface Collection<Long>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<Long>
public boolean add(Long e)
add
in interface Collection<Long>
public boolean remove(Object o)
remove
in interface Collection<Long>
public boolean addAll(Collection<? extends Long> c)
addAll
in interface Collection<Long>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Long>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Long>
public void clear()
clear
in interface Collection<Long>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |