public static class IntCollections.IterableCollection extends AbstractIntCollection implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected IntIterable |
iterable |
| Modifier | Constructor and Description |
|---|---|
protected |
IterableCollection(IntIterable iterable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty() |
IntIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
add, add, addAll, contains, contains, containsAll, rem, remove, removeAll, retainAll, toArray, toIntArray, toIntArray, toStringaddAll, clear, containsAll, removeAll, retainAll, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitremoveIf, removeIfaddAll, clear, containsAll, equals, hashCode, parallelStream, removeAll, retainAll, spliterator, stream, toArray, toArrayforEach, forEachprotected final IntIterable iterable
protected IterableCollection(IntIterable iterable)
public int size()
size in interface Collection<Integer>size in class AbstractCollection<Integer>public boolean isEmpty()
isEmpty in interface Collection<Integer>isEmpty in class AbstractCollection<Integer>public IntIterator iterator()
IntCollectionNote that this specification strengthens the one given in
Iterable.iterator(), which was already
strengthened in the corresponding type-specific class,
but was weakened by the fact that this interface extends Collection.
iterator in interface IntCollectioniterator in interface IntIterableiterator in interface Iterable<Integer>iterator in interface Collection<Integer>iterator in class AbstractIntCollectionIterable.iterator()Copyright © 2020. All rights reserved.