Interface MutableCharCollection
- All Superinterfaces:
CharIterable,PrimitiveIterable
- All Known Subinterfaces:
MutableCharBag,MutableCharList,MutableCharSet
- All Known Implementing Classes:
AbstractMutableCharKeySet,AbstractSynchronizedCharCollection,AbstractUnmodifiableCharCollection,CharArrayList,CharHashBag,CharHashSet,SynchronizedCharBag,SynchronizedCharCollection,SynchronizedCharList,SynchronizedCharSet,UnmodifiableCharBag,UnmodifiableCharCollection,UnmodifiableCharList,UnmodifiableCharSet
public interface MutableCharCollection extends CharIterable
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method Description booleanadd(char element)booleanaddAll(char... source)booleanaddAll(CharIterable source)MutableCharCollectionasSynchronized()MutableCharCollectionasUnmodifiable()MutableCharIteratorcharIterator()Returns a primitive iterator that can be used to iterate over the CharIterable in an imperative style.voidclear()<V> MutableCollection<V>collect(CharToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.default MutableCharCollectionnewEmpty()Creates a new empty mutable version of the same collection type.MutableCharCollectionreject(CharPredicate predicate)Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.booleanremove(char value)booleanremoveAll(char... source)booleanremoveAll(CharIterable source)default booleanremoveIf(CharPredicate predicate)booleanretainAll(char... source)booleanretainAll(CharIterable elements)MutableCharCollectionselect(CharPredicate predicate)Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.default MutableCharCollectiontap(CharProcedure procedure)ImmutableCharCollectiontoImmutable()MutableCharCollectionwith(char element)MutableCharCollectionwithAll(CharIterable elements)MutableCharCollectionwithout(char element)MutableCharCollectionwithoutAll(CharIterable elements)Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedListMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Method Details
-
charIterator
MutableCharIterator charIterator()Description copied from interface:CharIterableReturns a primitive iterator that can be used to iterate over the CharIterable in an imperative style.- Specified by:
charIteratorin interfaceCharIterable
-
add
boolean add(char element) -
addAll
boolean addAll(char... source) -
addAll
-
remove
boolean remove(char value) -
removeAll
-
removeAll
boolean removeAll(char... source) -
removeIf
- Since:
- 9.1
-
retainAll
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
retainAll
boolean retainAll(char... source)- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
clear
void clear() -
select
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.- Specified by:
selectin interfaceCharIterable
-
reject
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.- Specified by:
rejectin interfaceCharIterable
-
collect
Description copied from interface:CharIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceCharIterable
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableCharCollection asUnmodifiable() -
asSynchronized
MutableCharCollection asSynchronized() -
toImmutable
ImmutableCharCollection toImmutable() -
tap
- Specified by:
tapin interfaceCharIterable- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-