public static class CharCollections.IterableCollection extends AbstractCharCollection implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected CharIterable |
iterable |
| Modifier | Constructor and Description |
|---|---|
protected |
IterableCollection(CharIterable iterable) |
| Modifier and Type | Method and Description |
|---|---|
it.unimi.dsi.fastutil.ints.IntIterator |
intIterator()
Returns a widened primitive iterator on the elements of this collection.
|
it.unimi.dsi.fastutil.ints.IntSpliterator |
intSpliterator()
Returns widened primitive spliterator on the elements of this collection.
|
boolean |
isEmpty() |
it.unimi.dsi.fastutil.chars.CharIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
size() |
it.unimi.dsi.fastutil.chars.CharSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this collection.
|
add, add, addAll, addAll, contains, contains, containsAll, containsAll, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toCharArray, toCharArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitintParallelStream, intStream, parallelStream, removeIf, removeIf, removeIf, streamforEach, forEach, forEachprotected final CharIterable iterable
protected IterableCollection(CharIterable iterable)
public int size()
size in interface java.util.Collection<java.lang.Character>size in class java.util.AbstractCollection<java.lang.Character>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Character>isEmpty in class java.util.AbstractCollection<java.lang.Character>public it.unimi.dsi.fastutil.chars.CharIterator iterator()
CharCollectioniterator in interface CharCollectioniterator in interface CharIterableiterator in interface java.lang.Iterable<java.lang.Character>iterator in interface java.util.Collection<java.lang.Character>iterator in class AbstractCharCollectionIterable.iterator()public it.unimi.dsi.fastutil.chars.CharSpliterator spliterator()
CharCollectionSee Collection.spliterator() for more documentation on the requirements
of the returned spliterator.
spliterator in interface CharCollectionspliterator in interface CharIterablespliterator in interface java.lang.Iterable<java.lang.Character>spliterator in interface java.util.Collection<java.lang.Character>public it.unimi.dsi.fastutil.ints.IntIterator intIterator()
CharCollection
This method is provided for the purpose of APIs that expect only the JDK's
primitive iterators, of which there are only int, long, and double.
WARNING: This is not the same as converting the source to a sequence
of code points. This returned instance literally performs (int)(charValue) casts.
Surrogate pairs will be left as separate elements instead of combined into a single element
with the code point it represents. See Character for more discussion on code points,
char values, and surrogate pairs.
intIterator in interface CharCollectionintIterator in interface CharIterablepublic it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()
CharCollection
This method is provided for the purpose of APIs that expect only the JDK's
primitive spliterators, of which there are only int, long, and double.
WARNING: This is not the same as converting the source to a sequence
of code points. This returned instance literally performs (int)(charValue) casts.
Surrogate pairs will be left as separate elements instead of combined into a single element
with the code point it represents. See Character for more discussion on code points,
char values, and surrogate pairs.
intSpliterator in interface CharCollectionintSpliterator in interface CharIterable