|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections.primitives.LongCollections
This class consists exclusively of static methods that operate on or return LongCollections.
The methods of this class all throw a NullPoLongerException if the provided collection is null.
| Field Summary | |
static LongIterator |
EMPTY_LONG_ITERATOR
An unmodifiable, empty LongIterator |
static LongList |
EMPTY_LONG_LIST
An unmodifiable, empty LongList |
static LongListIterator |
EMPTY_LONG_LIST_ITERATOR
An unmodifiable, empty LongListIterator |
| Constructor Summary | |
LongCollections()
|
|
| Method Summary | |
static LongIterator |
getEmptyLongIterator()
Returns an unmodifiable, empty LongIterator |
static LongList |
getEmptyLongList()
Returns an unmodifiable, empty LongList. |
static LongListIterator |
getEmptyLongListIterator()
Returns an unmodifiable, empty LongListIterator |
static LongIterator |
singletonLongIterator(long value)
Returns an unmodifiable LongIterator containing only the specified element. |
static LongList |
singletonLongList(long value)
Returns an unmodifiable LongList containing only the specified element. |
static LongListIterator |
singletonLongListIterator(long value)
Returns an unmodifiable LongListIterator containing only the specified element. |
static LongIterator |
unmodifiableLongIterator(LongIterator iter)
Returns an unmodifiable version of the given non-null LongIterator. |
static LongList |
unmodifiableLongList(LongList list)
Returns an unmodifiable version of the given non-null LongList. |
static LongListIterator |
unmodifiableLongListIterator(LongListIterator iter)
Returns an unmodifiable version of the given non-null LongListIterator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final LongList EMPTY_LONG_LIST
getEmptyLongList()public static final LongIterator EMPTY_LONG_ITERATOR
getEmptyLongIterator()public static final LongListIterator EMPTY_LONG_LIST_ITERATOR
getEmptyLongListIterator()| Constructor Detail |
public LongCollections()
| Method Detail |
public static LongList singletonLongList(long value)
value - the single value
public static LongIterator singletonLongIterator(long value)
value - the single value
public static LongListIterator singletonLongListIterator(long value)
value - the single value
public static LongList unmodifiableLongList(LongList list)
throws java.lang.NullPointerException
list - the non-null LongList to wrap in an unmodifiable decorator
NullPoLongerException - if the given LongList is null
java.lang.NullPointerExceptionUnmodifiableLongList.wrap(org.apache.commons.collections.primitives.LongList)public static LongIterator unmodifiableLongIterator(LongIterator iter)
iter - the non-null LongIterator to wrap in an unmodifiable decorator
NullPoLongerException - if the given LongIterator is nullUnmodifiableLongIterator.wrap(org.apache.commons.collections.primitives.LongIterator)public static LongListIterator unmodifiableLongListIterator(LongListIterator iter)
iter - the non-null LongListIterator to wrap in an unmodifiable decorator
NullPoLongerException - if the given LongListIterator is nullUnmodifiableLongListIterator.wrap(org.apache.commons.collections.primitives.LongListIterator)public static LongList getEmptyLongList()
EMPTY_LONG_LISTpublic static LongIterator getEmptyLongIterator()
EMPTY_LONG_ITERATORpublic static LongListIterator getEmptyLongListIterator()
EMPTY_LONG_LIST_ITERATOR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||