|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrimitiveList<E>
Base interface for all primitive list interfaces.
This interface extends List
allowing seamless integration with other APIs.
All List methods can be used, using the primitive wrapper class.
However, it will be much more efficient to use the direct primitive methods
in the subinterface.
Method Summary | |
---|---|
E |
first()
Gets the first list value. |
E |
last()
Gets the last list value. |
boolean |
removeRange(int fromIndexInclusive,
int toIndexExclusive)
Removes a range of values from the list (optional operation). |
Methods inherited from interface org.joda.primitives.collection.PrimitiveCollection |
---|
containsAny |
Methods inherited from interface org.joda.primitives.PrimitiveCollectable |
---|
clear, clone, isEmpty, isModifiable, optimize, size |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
---|
E first()
E last()
size() - 1
or null if the size is zeroboolean removeRange(int fromIndexInclusive, int toIndexExclusive)
This method is optional, throwing an UnsupportedOperationException if the list cannot be modified.
fromIndexInclusive
- the start of the range to remove, inclusivetoIndexExclusive
- the end of the range to remove, exclusive
true
if the collection was modified
IndexOutOfBoundsException
- if the index is invalid
UnsupportedOperationException
- if remove is not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |