public static class ReferenceCollections.IterableCollection<K> extends AbstractReferenceCollection<K> implements Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Returns true if this collection contains no elements.
|
ObjectIterator<K> |
iterator()
Returns an iterator over the elements contained in this collection.
|
int |
size()
Returns the number of elements in this collection.
|
toStringadd, addAll, clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArrayequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic int size()
java.util.Collectionsize in interface Collection<K>size in class AbstractCollection<K>public boolean isEmpty()
java.util.AbstractCollectionThis implementation returns size() == 0.
isEmpty in interface Collection<K>isEmpty in class AbstractCollection<K>public ObjectIterator<K> iterator()
java.util.AbstractCollectioniterator in interface ObjectIterable<K>iterator in interface ReferenceCollection<K>iterator in interface Iterable<K>iterator in interface Collection<K>iterator in class AbstractReferenceCollection<K>Iterable.iterator()