public interface ReadOnlyList<T> extends ReadOnlyCollection<T>
| Modifier and Type | Method and Description |
|---|---|
default 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.
|
default int |
indexOf(T element)
From the beginning of this list, searches for an element that is equal to
and returns its index.
|
default int |
lastIndexOf(T element)
From the end of this list, searches for an element that is equal to
and returns its index.
|
isEmpty, size, streamforEach, iterator, spliteratorT get(int index)
index - A number in [0;this.size()-1]default boolean contains(T element)
ReadOnlyCollectionCollection.contains(Object).contains in interface ReadOnlyCollection<T>element - An object to search for.default int indexOf(T element)
element - An object to search for.List.indexOf(Object).default int lastIndexOf(T element)
element - An object to search for.List.lastIndexOf(Object).Copyright © 2012–2015 jcabi.com. All rights reserved.