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.boolean
isEmpty()
iterator()
Returns a type-specific iterator on the elements of this collection.int
size()
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, toString
Methods inherited from class java.util.AbstractCollection
clear, toArray, toArray
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
intParallelStream, intStream, parallelStream, removeIf, removeIf, removeIf, stream
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharIterable
forEach, forEach, forEach
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<Character>
- Specified by:
size
in classAbstractCollection<Character>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<Character>
- Overrides:
isEmpty
in classAbstractCollection<Character>
-
iterator
Description copied from interface:CharCollection
Returns a type-specific iterator on the elements of this collection.- Specified by:
iterator
in interfaceCharCollection
- Specified by:
iterator
in interfaceCharIterable
- Specified by:
iterator
in interfaceCollection<Character>
- Specified by:
iterator
in interfaceIterable<Character>
- Specified by:
iterator
in classAbstractCharCollection
- Returns:
- a type-specific iterator on the elements of this collection.
- See Also:
-
spliterator
Description copied from interface:CharCollection
Returns 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:
spliterator
in interfaceCharCollection
- Specified by:
spliterator
in interfaceCharIterable
- Specified by:
spliterator
in interfaceCollection<Character>
- Specified by:
spliterator
in interfaceIterable<Character>
- Returns:
- a type-specific spliterator on the elements of this collection.
-
intIterator
Description copied from interface:CharCollection
Returns 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. SeeCharacter
for more discussion on code points, char values, and surrogate pairs.- Specified by:
intIterator
in interfaceCharCollection
- Specified by:
intIterator
in interfaceCharIterable
- Returns:
- a widened primitive iterator on the elements of this collection.
-
intSpliterator
Description copied from interface:CharCollection
Returns 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. SeeCharacter
for more discussion on code points, char values, and surrogate pairs.- Specified by:
intSpliterator
in interfaceCharCollection
- Specified by:
intSpliterator
in interfaceCharIterable
- Returns:
- a widened primitive spliterator on the elements of this collection.
-