|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.silverpeas.util.ListSlice<T>
public class ListSlice<T>
This list represents a slice of a more complete lists and as such contains only the items that are part of this slice.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
ListSlice(Collection<? extends T> collection)
Constructs a new list slice with all the items of the specified collection. |
|
ListSlice(int sliceBeginIndex,
int sliceEndIndex)
Constructs a new slice for a given list. |
|
ListSlice(int sliceBeginIndex,
int sliceEndIndex,
int originalListSize)
Constructs a new slice for a given list. |
|
ListSlice(int sliceBeginIndex,
int sliceEndIndex,
List<? extends T> originalList)
Constructs a new slice for a given list. |
Method Summary | |
---|---|
int |
getBeginIndex()
Gets the beginning index of this slice in the original list from which it comes. |
int |
getEndIndex()
Gets the end index of this slice in the original list from which it comes. |
int |
getOriginalListSize()
Gets the size of the list this slice comes from. |
void |
setOriginalListSize(int size)
Sets the size of the list this slice comes from. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public ListSlice(int sliceBeginIndex, int sliceEndIndex)
sliceBeginIndex
- the index from which this slice starts in the list.sliceEndIndex
- the index to which this slice ends in the list.public ListSlice(int sliceBeginIndex, int sliceEndIndex, int originalListSize)
sliceBeginIndex
- the index from which this slice starts in the list.sliceEndIndex
- the index to which this slice ends in the list.originalListSize
- the size of the list this slice comes from.public ListSlice(int sliceBeginIndex, int sliceEndIndex, List<? extends T> originalList)
sliceBeginIndex
- the index from which this slice starts in the list.sliceEndIndex
- the index to which this slice ends in the list.originalList
- the list from which this slice comes from.public ListSlice(Collection<? extends T> collection)
collection
- a collection of items of type TMethod Detail |
---|
public int getBeginIndex()
public int getEndIndex()
public int getOriginalListSize()
public void setOriginalListSize(int size)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |