Class AbstractMutableBooleanValuesMap
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractBooleanIterable
org.eclipse.collections.impl.map.mutable.primitive.AbstractMutableBooleanValuesMap
- All Implemented Interfaces:
- BooleanIterable,- BooleanValuesMap,- MutableBooleanValuesMap,- PrimitiveIterable
- Direct Known Subclasses:
- ByteBooleanHashMap,- CharBooleanHashMap,- DoubleBooleanHashMap,- FloatBooleanHashMap,- IntBooleanHashMap,- LongBooleanHashMap,- ShortBooleanHashMap
public abstract class AbstractMutableBooleanValuesMap
extends AbstractBooleanIterable
implements MutableBooleanValuesMap
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanallSatisfy(BooleanPredicate predicate) Returns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(BooleanPredicate predicate) Returns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.voidappendString(Appendable appendable, String start, String separator, String end) Prints a string representation of this collection onto the givenAppendable.chunk(int size) Partitions elements in fixed size chunks.<V> MutableBag<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.booleancontains(boolean value) Returns true if the value is contained in the BooleanIterable, and false if it is not.booleancontainsAll(BooleanIterable source) Returns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.intcount(BooleanPredicate predicate) Returns a count of the number of elements in the BooleanIterable that return true for the specified predicate.booleandetectIfNone(BooleanPredicate predicate, boolean value) voideach(BooleanProcedure procedure) A synonym for forEach.voidforEach(BooleanProcedure procedure) Applies the BooleanProcedure to each element in the BooleanIterable.voidforEachValue(BooleanProcedure procedure) Iterates through each value in this map.<V> VinjectInto(V injectedValue, ObjectBooleanToObjectFunction<? super V, ? extends V> function) booleanisEmpty()Returns true if this iterable has zero items.booleannoneSatisfy(BooleanPredicate predicate) Returns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.booleannotEmpty()The English equivalent of !this.isEmpty()reject(BooleanPredicate predicate) Returns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.select(BooleanPredicate predicate) Returns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.intsize()Returns the number of items in this iterable.boolean[]toArray()Converts the BooleanIterable to a primitive boolean array.boolean[]toArray(boolean[] array) Converts the BooleanIterable to a primitive boolean array.Methods inherited from class org.eclipse.collections.impl.primitive.AbstractBooleanIterableasLazy, toBag, toList, toSet, toStringMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.BooleanIterableasLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, select, toBag, toList, toSetMethods inherited from interface org.eclipse.collections.api.map.primitive.BooleanValuesMapcontainsValue, tap, valuesMethods inherited from interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMapbooleanIterator, clearMethods inherited from interface org.eclipse.collections.api.PrimitiveIterableappendString, appendString, makeString, makeString, makeString, toString
- 
Constructor Details- 
AbstractMutableBooleanValuesMappublic AbstractMutableBooleanValuesMap()
 
- 
- 
Method Details- 
containspublic boolean contains(boolean value) Description copied from interface:BooleanIterableReturns true if the value is contained in the BooleanIterable, and false if it is not.- Specified by:
- containsin interface- BooleanIterable
 
- 
containsAllDescription copied from interface:BooleanIterableReturns true if all of the values specified in the source BooleanIterable are contained in the BooleanIterable, and false if they are not.- Specified by:
- containsAllin interface- BooleanIterable
 
- 
sizepublic int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
- sizein interface- PrimitiveIterable
 
- 
isEmptypublic boolean isEmpty()Description copied from interface:PrimitiveIterableReturns true if this iterable has zero items.- Specified by:
- isEmptyin interface- PrimitiveIterable
 
- 
notEmptypublic boolean notEmpty()Description copied from interface:PrimitiveIterableThe English equivalent of !this.isEmpty()- Specified by:
- notEmptyin interface- PrimitiveIterable
 
- 
forEachDescription copied from interface:BooleanIterableApplies the BooleanProcedure to each element in the BooleanIterable.- Specified by:
- forEachin interface- BooleanIterable
 
- 
eachDescription copied from interface:BooleanIterableA synonym for forEach.- Specified by:
- eachin interface- BooleanIterable
- Since:
- 7.0.
 
- 
forEachValueDescription copied from interface:BooleanValuesMapIterates through each value in this map.- Specified by:
- forEachValuein interface- BooleanValuesMap
- Parameters:
- procedure- the procedure to invoke for each value in this map.
 
- 
injectIntopublic <V> V injectInto(V injectedValue, ObjectBooleanToObjectFunction<? super V, ? extends V> function) - Specified by:
- injectIntoin interface- BooleanIterable
 
- 
chunkDescription copied from interface:BooleanIterablePartitions elements in fixed size chunks.- Specified by:
- chunkin interface- BooleanIterable
- Parameters:
- size- the number of elements per chunk
- Returns:
- A RichIterablecontainingBooleanIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
 
- 
appendStringDescription copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String, String, String).- Specified by:
- appendStringin interface- PrimitiveIterable
 
- 
selectDescription copied from interface:BooleanIterableReturns a new BooleanIterable with all of the elements in the BooleanIterable that return true for the specified predicate.- Specified by:
- selectin interface- BooleanIterable
- Specified by:
- selectin interface- BooleanValuesMap
- Specified by:
- selectin interface- MutableBooleanValuesMap
 
- 
rejectDescription copied from interface:BooleanIterableReturns a new BooleanIterable with all of the elements in the BooleanIterable that return false for the specified predicate.- Specified by:
- rejectin interface- BooleanIterable
- Specified by:
- rejectin interface- BooleanValuesMap
- Specified by:
- rejectin interface- MutableBooleanValuesMap
 
- 
collectDescription copied from interface:BooleanIterableReturns 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 interface- BooleanIterable
- Specified by:
- collectin interface- BooleanValuesMap
- Specified by:
- collectin interface- MutableBooleanValuesMap
 
- 
detectIfNone- Specified by:
- detectIfNonein interface- BooleanIterable
 
- 
countDescription copied from interface:BooleanIterableReturns a count of the number of elements in the BooleanIterable that return true for the specified predicate.- Specified by:
- countin interface- BooleanIterable
 
- 
anySatisfyDescription copied from interface:BooleanIterableReturns true if any of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
- anySatisfyin interface- BooleanIterable
 
- 
allSatisfyDescription copied from interface:BooleanIterableReturns true if all of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
- allSatisfyin interface- BooleanIterable
 
- 
noneSatisfyDescription copied from interface:BooleanIterableReturns true if none of the elements in the BooleanIterable return true for the specified predicate, otherwise returns false.- Specified by:
- noneSatisfyin interface- BooleanIterable
 
- 
toArraypublic boolean[] toArray()Description copied from interface:BooleanIterableConverts the BooleanIterable to a primitive boolean array.- Specified by:
- toArrayin interface- BooleanIterable
 
- 
toArraypublic boolean[] toArray(boolean[] array) Description copied from interface:BooleanIterableConverts the BooleanIterable to a primitive boolean array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged.- Specified by:
- toArrayin interface- BooleanIterable
 
 
-