java.util
Class Collections.SynchronizedRandomAccessList<E>
java.lang.Object
java.util.Collections.SynchronizedCollection<E>
java.util.Collections.SynchronizedList<E>
java.util.Collections.SynchronizedRandomAccessList<E>
- All Implemented Interfaces:
- Serializable, Iterable<E>, Collection<E>, List<E>, RandomAccess
- Enclosing class:
- Collections
static class Collections.SynchronizedRandomAccessList<E>
- extends Collections.SynchronizedList<E>
- implements RandomAccess
|
Method Summary |
List<E> |
subList(int start,
int end)
Returns a List of the specified portion of this List from the start index
to one less than the end index. |
| Methods inherited from class java.util.Collections.SynchronizedList |
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set |
| Methods inherited from class java.util.Collections.SynchronizedCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from interface java.util.List |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Collections.SynchronizedRandomAccessList
Collections.SynchronizedRandomAccessList(List<E> l)
Collections.SynchronizedRandomAccessList
Collections.SynchronizedRandomAccessList(List<E> l,
Object mutex)
subList
public List<E> subList(int start,
int end)
- Description copied from interface:
List
- Returns a List of the specified portion of this List from the start index
to one less than the end index. The returned List is backed by this list
so changes to one are reflected by the other.
- Specified by:
subList in interface List<E>- Overrides:
subList in class Collections.SynchronizedList<E>
- Parameters:
start - the index at which to start the sublistend - the index one past the end of the sublist
- Returns:
- a List of a portion of this List
Please submit a feedback, bug or feature