public final class WrappingReadOnlyList<T> extends Object implements ReadOnlyList<T>
List to expose only its accessors.| Constructor and Description |
|---|
WrappingReadOnlyList(List<T> wrp)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(T element)
Checks if this ReadOnlyCollection contains a particular object with the
same rules as
Collection.contains(Object). |
T |
get(int index)
Returns an element under particular index.
|
Iterator<T> |
iterator() |
int |
size()
Size of this collection.
|
java.util.stream.Stream<T> |
stream()
Stream over elements of this collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitindexOf, lastIndexOfisEmptyforEach, spliteratorpublic T get(int index)
ReadOnlyListget in interface ReadOnlyList<T>index - A number in [0;this.size()-1]public boolean contains(T element)
ReadOnlyCollectionCollection.contains(Object).contains in interface ReadOnlyCollection<T>contains in interface ReadOnlyList<T>element - An object to search for.public int size()
ReadOnlyCollectionsize in interface ReadOnlyCollection<T>public java.util.stream.Stream<T> stream()
ReadOnlyCollectionstream in interface ReadOnlyCollection<T>Copyright © 2012–2015 jcabi.com. All rights reserved.