Class CharCollections.IterableCollection
- All Implemented Interfaces:
CharCollection,CharIterable,Serializable,Iterable<Character>,Collection<Character>
- Enclosing class:
CharCollections
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns a widened primitive iterator on the elements of this collection.Returns widened primitive spliterator on the elements of this collection.booleanisEmpty()iterator()Returns a type-specific iterator on the elements of this collection.intsize()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, forEach
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<Character>- Specified by:
sizein classAbstractCollection<Character>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Character>- Overrides:
isEmptyin classAbstractCollection<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 interfaceCollection<Character>- Specified by:
iteratorin interfaceIterable<Character>- Specified by:
iteratorin classAbstractCharCollection- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
-
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 interfaceCollection<Character>- Specified by:
spliteratorin interfaceIterable<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.
-