Interface MutableCharCollection
-
- All Superinterfaces:
CharIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableCharBag
,MutableCharList
,MutableCharSet
- All Known Implementing Classes:
AbstractMutableCharKeySet
,AbstractMutableCharValuesMap.AbstractCharValuesCollection
,AbstractSynchronizedCharCollection
,AbstractUnmodifiableCharCollection
,ByteCharHashMap.ValuesCollection
,CharArrayList
,CharBooleanHashMap.KeySet
,CharByteHashMap.KeySet
,CharCharHashMap.KeySet
,CharCharHashMap.ValuesCollection
,CharDoubleHashMap.KeySet
,CharFloatHashMap.KeySet
,CharHashBag
,CharHashSet
,CharIntHashMap.KeySet
,CharLongHashMap.KeySet
,CharObjectHashMap.KeySet
,CharShortHashMap.KeySet
,DoubleCharHashMap.ValuesCollection
,FloatCharHashMap.ValuesCollection
,IntCharHashMap.ValuesCollection
,LongCharHashMap.ValuesCollection
,ObjectCharHashMap.ValuesCollection
,ObjectCharHashMapWithHashingStrategy.ValuesCollection
,ShortCharHashMap.ValuesCollection
,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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
add(char element)
boolean
addAll(char... source)
boolean
addAll(CharIterable source)
MutableCharCollection
asSynchronized()
MutableCharCollection
asUnmodifiable()
MutableCharIterator
charIterator()
Returns a primitive iterator that can be used to iterate over the CharIterable in an imperative style.void
clear()
<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 MutableCharCollection
newEmpty()
Creates a new empty mutable version of the same collection type.MutableCharCollection
reject(CharPredicate predicate)
Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.boolean
remove(char value)
boolean
removeAll(char... source)
boolean
removeAll(CharIterable source)
default boolean
removeIf(CharPredicate predicate)
boolean
retainAll(char... source)
boolean
retainAll(CharIterable elements)
MutableCharCollection
select(CharPredicate predicate)
Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.default MutableCharCollection
tap(CharProcedure procedure)
ImmutableCharCollection
toImmutable()
MutableCharCollection
with(char element)
MutableCharCollection
withAll(CharIterable elements)
MutableCharCollection
without(char element)
MutableCharCollection
withoutAll(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, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
charIterator
MutableCharIterator charIterator()
Description copied from interface:CharIterable
Returns a primitive iterator that can be used to iterate over the CharIterable in an imperative style.- Specified by:
charIterator
in interfaceCharIterable
-
add
boolean add(char element)
-
addAll
boolean addAll(char... source)
-
addAll
boolean addAll(CharIterable source)
-
remove
boolean remove(char value)
-
removeAll
boolean removeAll(CharIterable source)
-
removeAll
boolean removeAll(char... source)
-
removeIf
default boolean removeIf(CharPredicate predicate)
- Since:
- 9.1
-
retainAll
boolean retainAll(CharIterable elements)
- 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
MutableCharCollection select(CharPredicate predicate)
Description copied from interface:CharIterable
Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.- Specified by:
select
in interfaceCharIterable
-
reject
MutableCharCollection reject(CharPredicate predicate)
Description copied from interface:CharIterable
Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.- Specified by:
reject
in interfaceCharIterable
-
collect
<V> MutableCollection<V> collect(CharToObjectFunction<? extends V> function)
Description copied from interface:CharIterable
Returns 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:
collect
in interfaceCharIterable
-
with
MutableCharCollection with(char element)
-
without
MutableCharCollection without(char element)
-
withAll
MutableCharCollection withAll(CharIterable elements)
-
withoutAll
MutableCharCollection withoutAll(CharIterable elements)
-
asUnmodifiable
MutableCharCollection asUnmodifiable()
-
asSynchronized
MutableCharCollection asSynchronized()
-
toImmutable
ImmutableCharCollection toImmutable()
-
tap
default MutableCharCollection tap(CharProcedure procedure)
- Specified by:
tap
in interfaceCharIterable
- Since:
- 9.0.
-
newEmpty
default MutableCharCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-