BooleanIterable
, BooleanValuesMap
, MutableBooleanValuesMap
, PrimitiveIterable
ByteBooleanHashMap
, CharBooleanHashMap
, DoubleBooleanHashMap
, FloatBooleanHashMap
, IntBooleanHashMap
, LongBooleanHashMap
, ShortBooleanHashMap
public abstract class AbstractMutableBooleanValuesMap extends AbstractBooleanIterable implements MutableBooleanValuesMap
Constructor | Description |
---|---|
AbstractMutableBooleanValuesMap() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
allSatisfy(BooleanPredicate predicate) |
Returns true if all of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(BooleanPredicate predicate) |
Returns true if any of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
Prints a string representation of this collection onto the given
Appendable . |
<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.
|
boolean |
contains(boolean value) |
Returns true if the value is contained in the BooleanIterable, and false if it is not.
|
boolean |
containsAll(BooleanIterable source) |
Returns true if the all of the values specified in the source BooleanIterable are contained
in the BooleanIterable, and false if they are not.
|
int |
count(BooleanPredicate predicate) |
Returns a count of the number of elements in the BooleanIterable that return true for the
specified predicate.
|
boolean |
detectIfNone(BooleanPredicate predicate,
boolean value) |
|
void |
each(BooleanProcedure procedure) |
A synonym for forEach.
|
void |
forEach(BooleanProcedure procedure) |
Applies the BooleanProcedure to each element in the BooleanIterable.
|
void |
forEachValue(BooleanProcedure procedure) |
|
<V> V |
injectInto(V injectedValue,
ObjectBooleanToObjectFunction<? super V,? extends V> function) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
boolean |
noneSatisfy(BooleanPredicate predicate) |
Returns true if none of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
MutableBooleanBag |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
MutableBooleanBag |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
int |
size() |
Returns the number of items in this iterable.
|
boolean[] |
toArray() |
Converts the BooleanIterable to a primitive boolean array.
|
asLazy, containsAll, toBag, toList, toSet, toString
asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, reject, select, toBag, toList, toSet
containsValue, values
booleanIterator, clear
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(boolean value)
BooleanIterable
contains
in interface BooleanIterable
public boolean containsAll(BooleanIterable source)
BooleanIterable
containsAll
in interface BooleanIterable
containsAll
in class AbstractBooleanIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
public void forEach(BooleanProcedure procedure)
BooleanIterable
forEach
in interface BooleanIterable
public void each(BooleanProcedure procedure)
BooleanIterable
each
in interface BooleanIterable
public void forEachValue(BooleanProcedure procedure)
forEachValue
in interface BooleanValuesMap
public <V> V injectInto(V injectedValue, ObjectBooleanToObjectFunction<? super V,? extends V> function)
injectInto
in interface BooleanIterable
public void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
public MutableBooleanBag select(BooleanPredicate predicate)
BooleanIterable
select
in interface BooleanIterable
select
in interface BooleanValuesMap
select
in interface MutableBooleanValuesMap
public MutableBooleanBag reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanIterable
reject
in interface BooleanValuesMap
reject
in interface MutableBooleanValuesMap
public <V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterable
collect
in interface BooleanIterable
collect
in interface BooleanValuesMap
collect
in interface MutableBooleanValuesMap
public boolean detectIfNone(BooleanPredicate predicate, boolean value)
detectIfNone
in interface BooleanIterable
public int count(BooleanPredicate predicate)
BooleanIterable
count
in interface BooleanIterable
public boolean anySatisfy(BooleanPredicate predicate)
BooleanIterable
anySatisfy
in interface BooleanIterable
public boolean allSatisfy(BooleanPredicate predicate)
BooleanIterable
allSatisfy
in interface BooleanIterable
public boolean noneSatisfy(BooleanPredicate predicate)
BooleanIterable
noneSatisfy
in interface BooleanIterable
public boolean[] toArray()
BooleanIterable
toArray
in interface BooleanIterable
Copyright © 2004–2017. All rights reserved.