T - Type of elements of the collection.public interface ReadOnlyCollection<T> extends Iterable<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(T object)
Checks if this ReadOnlyCollection contains a particular object with the
same rules as
Collection.contains(Object). |
default boolean |
isEmpty()
Checks if this collection is empty.
|
int |
size()
Size of this collection.
|
java.util.stream.Stream<T> |
stream()
Stream over elements of this collection.
|
forEach, iterator, spliteratorboolean contains(T object)
Collection.contains(Object).object - An object to search for.int size()
java.util.stream.Stream<T> stream()
default boolean isEmpty()
Copyright © 2012–2015 jcabi.com. All rights reserved.