public class BooleanHashSet extends Object implements MutableBooleanSet, Externalizable
| Constructor and Description |
|---|
BooleanHashSet() |
BooleanHashSet(boolean... elements) |
BooleanHashSet(BooleanHashSet set) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(boolean element) |
boolean |
addAll(boolean... source) |
boolean |
addAll(BooleanIterable source) |
boolean |
allSatisfy(BooleanPredicate predicate) |
boolean |
anySatisfy(BooleanPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyBooleanIterable |
asLazy() |
MutableBooleanSet |
asSynchronized() |
MutableBooleanSet |
asUnmodifiable() |
MutableBooleanIterator |
booleanIterator() |
void |
clear() |
<V> MutableSet<V> |
collect(BooleanToObjectFunction<? extends V> function) |
boolean |
contains(boolean value) |
boolean |
containsAll(boolean... source) |
boolean |
containsAll(BooleanIterable source) |
int |
count(BooleanPredicate predicate) |
boolean |
detectIfNone(BooleanPredicate predicate,
boolean ifNone) |
void |
each(BooleanProcedure procedure) |
boolean |
equals(Object obj)
Follows the same general contract as
Set.equals(Object). |
void |
forEach(BooleanProcedure procedure) |
BooleanSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
<T> T |
injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
static BooleanHashSet |
newSet(BooleanIterable source) |
static BooleanHashSet |
newSetWith(boolean... source) |
boolean |
noneSatisfy(BooleanPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
void |
readExternal(ObjectInput in) |
BooleanHashSet |
reject(BooleanPredicate predicate) |
boolean |
remove(boolean value) |
boolean |
removeAll(boolean... source) |
boolean |
removeAll(BooleanIterable source) |
boolean |
retainAll(boolean... source) |
boolean |
retainAll(BooleanIterable source) |
BooleanHashSet |
select(BooleanPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
boolean[] |
toArray() |
MutableBooleanBag |
toBag() |
ImmutableBooleanSet |
toImmutable()
Returns an immutable copy of this set.
|
MutableBooleanList |
toList() |
MutableBooleanSet |
toSet() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
BooleanHashSet |
with(boolean element) |
BooleanHashSet |
withAll(BooleanIterable elements) |
BooleanHashSet |
without(boolean element) |
BooleanHashSet |
withoutAll(BooleanIterable elements) |
void |
writeExternal(ObjectOutput out) |
public BooleanHashSet()
public BooleanHashSet(BooleanHashSet set)
public BooleanHashSet(boolean... elements)
public static BooleanHashSet newSetWith(boolean... source)
public static BooleanHashSet newSet(BooleanIterable source)
public boolean add(boolean element)
add in interface MutableBooleanCollectionpublic boolean addAll(boolean... source)
addAll in interface MutableBooleanCollectionpublic boolean addAll(BooleanIterable source)
addAll in interface MutableBooleanCollectionpublic boolean remove(boolean value)
remove in interface MutableBooleanCollectionpublic boolean removeAll(BooleanIterable source)
removeAll in interface MutableBooleanCollectionpublic boolean removeAll(boolean... source)
removeAll in interface MutableBooleanCollectionpublic boolean retainAll(BooleanIterable source)
retainAll in interface MutableBooleanCollectionCollection.retainAll(Collection)public boolean retainAll(boolean... source)
retainAll in interface MutableBooleanCollectionCollection.retainAll(Collection)public void clear()
clear in interface MutableBooleanCollectionpublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanCollectionpublic void forEach(BooleanProcedure procedure)
forEach in interface BooleanIterablepublic void each(BooleanProcedure procedure)
each in interface BooleanIterablepublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterablepublic int count(BooleanPredicate predicate)
count in interface BooleanIterablepublic boolean anySatisfy(BooleanPredicate predicate)
anySatisfy in interface BooleanIterablepublic boolean allSatisfy(BooleanPredicate predicate)
allSatisfy in interface BooleanIterablepublic boolean noneSatisfy(BooleanPredicate predicate)
noneSatisfy in interface BooleanIterablepublic BooleanHashSet select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface MutableBooleanCollectionselect in interface BooleanSetselect in interface MutableBooleanSetpublic BooleanHashSet reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface MutableBooleanCollectionreject in interface BooleanSetreject in interface MutableBooleanSetpublic boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone in interface BooleanIterablepublic <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface MutableBooleanCollectioncollect in interface BooleanSetcollect in interface MutableBooleanSetpublic boolean[] toArray()
toArray in interface BooleanIterablepublic boolean contains(boolean value)
contains in interface BooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface BooleanIterablepublic boolean containsAll(BooleanIterable source)
containsAll in interface BooleanIterablepublic BooleanHashSet with(boolean element)
with in interface MutableBooleanCollectionwith in interface MutableBooleanSetpublic BooleanHashSet without(boolean element)
without in interface MutableBooleanCollectionwithout in interface MutableBooleanSetpublic BooleanHashSet withAll(BooleanIterable elements)
withAll in interface MutableBooleanCollectionwithAll in interface MutableBooleanSetpublic BooleanHashSet withoutAll(BooleanIterable elements)
withoutAll in interface MutableBooleanCollectionwithoutAll in interface MutableBooleanSetpublic MutableBooleanSet asUnmodifiable()
asUnmodifiable in interface MutableBooleanCollectionasUnmodifiable in interface MutableBooleanSetpublic MutableBooleanSet asSynchronized()
asSynchronized in interface MutableBooleanCollectionasSynchronized in interface MutableBooleanSetpublic BooleanSet freeze()
MutableBooleanSetfreeze in interface BooleanSetfreeze in interface MutableBooleanSetpublic ImmutableBooleanSet toImmutable()
MutableBooleanSettoImmutable in interface MutableBooleanCollectiontoImmutable in interface BooleanSettoImmutable in interface MutableBooleanSetpublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic boolean equals(Object obj)
BooleanSetSet.equals(Object).equals in interface BooleanSetequals in class Objectpublic int hashCode()
BooleanSetSet.hashCode().hashCode in interface BooleanSethashCode in class Objectpublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic MutableBooleanList toList()
toList in interface BooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterablepublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2004–2016. All rights reserved.