Interface MutableBooleanCollection
-
- All Superinterfaces:
BooleanIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableBooleanBag
,MutableBooleanList
,MutableBooleanSet
- All Known Implementing Classes:
AbstractMutableBooleanValuesMap.AbstractBooleanValuesCollection
,AbstractSynchronizedBooleanCollection
,AbstractUnmodifiableBooleanCollection
,BooleanArrayList
,BooleanHashBag
,BooleanHashSet
,ByteBooleanHashMap.ValuesCollection
,CharBooleanHashMap.ValuesCollection
,DoubleBooleanHashMap.ValuesCollection
,FloatBooleanHashMap.ValuesCollection
,IntBooleanHashMap.ValuesCollection
,LongBooleanHashMap.ValuesCollection
,ObjectBooleanHashMap.ValuesCollection
,ObjectBooleanHashMapWithHashingStrategy.ValuesCollection
,ShortBooleanHashMap.ValuesCollection
,SynchronizedBooleanBag
,SynchronizedBooleanCollection
,SynchronizedBooleanList
,SynchronizedBooleanSet
,UnmodifiableBooleanBag
,UnmodifiableBooleanCollection
,UnmodifiableBooleanList
,UnmodifiableBooleanSet
public interface MutableBooleanCollection extends BooleanIterable
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(boolean element)
boolean
addAll(boolean... source)
boolean
addAll(BooleanIterable source)
MutableBooleanCollection
asSynchronized()
MutableBooleanCollection
asUnmodifiable()
MutableBooleanIterator
booleanIterator()
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.void
clear()
<V> MutableCollection<V>
collect(BooleanToObjectFunction<? extends V> function)
Returns a new collection with the results of applying the specified function on each element of the source collection.default MutableBooleanCollection
newEmpty()
Creates a new empty mutable version of the same collection type.MutableBooleanCollection
reject(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.boolean
remove(boolean value)
boolean
removeAll(boolean... source)
boolean
removeAll(BooleanIterable source)
default boolean
removeIf(BooleanPredicate predicate)
boolean
retainAll(boolean... source)
boolean
retainAll(BooleanIterable elements)
MutableBooleanCollection
select(BooleanPredicate predicate)
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.default MutableBooleanCollection
tap(BooleanProcedure procedure)
ImmutableBooleanCollection
toImmutable()
MutableBooleanCollection
with(boolean element)
MutableBooleanCollection
withAll(BooleanIterable elements)
MutableBooleanCollection
without(boolean element)
MutableBooleanCollection
withoutAll(BooleanIterable elements)
-
Methods inherited from interface org.eclipse.collections.api.BooleanIterable
allSatisfy, anySatisfy, asLazy, 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, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSet
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
booleanIterator
MutableBooleanIterator booleanIterator()
Description copied from interface:BooleanIterable
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an imperative style.- Specified by:
booleanIterator
in interfaceBooleanIterable
-
add
boolean add(boolean element)
-
addAll
boolean addAll(boolean... source)
-
addAll
boolean addAll(BooleanIterable source)
-
remove
boolean remove(boolean value)
-
removeAll
boolean removeAll(BooleanIterable source)
-
removeAll
boolean removeAll(boolean... source)
-
removeIf
default boolean removeIf(BooleanPredicate predicate)
- Since:
- 9.1
-
retainAll
boolean retainAll(BooleanIterable elements)
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
retainAll
boolean retainAll(boolean... source)
- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
clear
void clear()
-
select
MutableBooleanCollection select(BooleanPredicate predicate)
Description copied from interface:BooleanIterable
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.- Specified by:
select
in interfaceBooleanIterable
-
reject
MutableBooleanCollection reject(BooleanPredicate predicate)
Description copied from interface:BooleanIterable
Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.- Specified by:
reject
in interfaceBooleanIterable
-
collect
<V> MutableCollection<V> collect(BooleanToObjectFunction<? extends V> function)
Description copied from interface:BooleanIterable
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 interfaceBooleanIterable
-
with
MutableBooleanCollection with(boolean element)
-
without
MutableBooleanCollection without(boolean element)
-
withAll
MutableBooleanCollection withAll(BooleanIterable elements)
-
withoutAll
MutableBooleanCollection withoutAll(BooleanIterable elements)
-
asUnmodifiable
MutableBooleanCollection asUnmodifiable()
-
asSynchronized
MutableBooleanCollection asSynchronized()
-
toImmutable
ImmutableBooleanCollection toImmutable()
-
tap
default MutableBooleanCollection tap(BooleanProcedure procedure)
- Specified by:
tap
in interfaceBooleanIterable
- Since:
- 9.0.
-
newEmpty
default MutableBooleanCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-