Class CharCollections.IterableCollection
- All Implemented Interfaces:
CharCollection,CharIterable,java.io.Serializable,java.lang.Iterable<java.lang.Character>,java.util.Collection<java.lang.Character>
- Enclosing class:
- CharCollections
public static class CharCollections.IterableCollection extends AbstractCharCollection implements java.io.Serializable
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description IntIteratorintIterator()Returns a widened primitive iterator on the elements of this collection.IntSpliteratorintSpliterator()Returns widened primitive spliterator on the elements of this collection.booleanisEmpty()CharIteratoriterator()Returns a type-specific iterator on the elements of this collection.intsize()CharSpliteratorspliterator()Returns a type-specific spliterator on the elements of this collection.Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharCollection
add, add, addAll, addAll, contains, contains, containsAll, containsAll, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toCharArray, toCharArray, toStringMethods inherited from class java.util.AbstractCollection
clear, toArray, toArrayMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
intParallelStream, intStream, parallelStream, removeIf, removeIf, removeIf, streamMethods inherited from interface it.unimi.dsi.fastutil.chars.CharIterable
forEach, forEach, forEachMethods inherited from interface java.util.Collection
clear, equals, hashCode, toArray, toArray, toArray
-
Method Details
-
size
public int size()- Specified by:
sizein interfacejava.util.Collection<java.lang.Character>- Specified by:
sizein classjava.util.AbstractCollection<java.lang.Character>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacejava.util.Collection<java.lang.Character>- Overrides:
isEmptyin classjava.util.AbstractCollection<java.lang.Character>
-
iterator
Description copied from interface:CharCollectionReturns a type-specific iterator on the elements of this collection.- Specified by:
iteratorin interfaceCharCollection- Specified by:
iteratorin interfaceCharIterable- Specified by:
iteratorin interfacejava.util.Collection<java.lang.Character>- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.Character>- Specified by:
iteratorin classAbstractCharCollection- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
Iterable.iterator()
-
spliterator
Description copied from interface:CharCollectionReturns a type-specific spliterator on the elements of this collection.See
Collection.spliterator()for more documentation on the requirements of the returned spliterator.- Specified by:
spliteratorin interfaceCharCollection- Specified by:
spliteratorin interfaceCharIterable- Specified by:
spliteratorin interfacejava.util.Collection<java.lang.Character>- Specified by:
spliteratorin interfacejava.lang.Iterable<java.lang.Character>- Returns:
- a type-specific spliterator on the elements of this collection.
-
intIterator
Description copied from interface:CharCollectionReturns a widened primitive iterator on the elements of this collection.This method is provided for the purpose of APIs that expect only the JDK's primitive iterators, of which there are only
int,long, anddouble.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. SeeCharacterfor more discussion on code points, char values, and surrogate pairs.- Specified by:
intIteratorin interfaceCharCollection- Specified by:
intIteratorin interfaceCharIterable- Returns:
- a widened primitive iterator on the elements of this collection.
-
intSpliterator
Description copied from interface:CharCollectionReturns widened primitive spliterator on the elements of this collection.This method is provided for the purpose of APIs that expect only the JDK's primitive spliterators, of which there are only
int,long, anddouble.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. SeeCharacterfor more discussion on code points, char values, and surrogate pairs.- Specified by:
intSpliteratorin interfaceCharCollection- Specified by:
intSpliteratorin interfaceCharIterable- Returns:
- a widened primitive spliterator on the elements of this collection.
-