Class BooleanHashSet
java.lang.Object
org.eclipse.collections.impl.set.mutable.primitive.BooleanHashSet
- All Implemented Interfaces:
Externalizable,Serializable,BooleanIterable,MutableBooleanCollection,PrimitiveIterable,BooleanSet,MutableBooleanSet
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(boolean element) booleanaddAll(boolean... source) booleanaddAll(BooleanIterable source) booleanallSatisfy(BooleanPredicate predicate) booleananySatisfy(BooleanPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()boxed()chunk(int size) voidclear()<V> MutableSet<V>collect(BooleanToObjectFunction<? extends V> function) booleancontains(boolean value) booleancontainsAll(boolean... source) booleancontainsAll(BooleanIterable source) intcount(BooleanPredicate predicate) booleandetectIfNone(BooleanPredicate predicate, boolean ifNone) voideach(BooleanProcedure procedure) booleanfreeze()inthashCode()<T> TinjectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) newEmpty()static BooleanHashSetnewSet(BooleanIterable source) static BooleanHashSetnewSetWith(boolean... source) booleannoneSatisfy(BooleanPredicate predicate) booleannotEmpty()voidreject(BooleanPredicate predicate) booleanremove(boolean value) booleanremoveAll(boolean... source) booleanremoveAll(BooleanIterable source) booleanretainAll(boolean... source) booleanretainAll(BooleanIterable source) select(BooleanPredicate predicate) intsize()boolean[]toArray()boolean[]toArray(boolean[] target) toBag()toList()toSet()toString()with(boolean element) withAll(BooleanIterable elements) without(boolean element) withoutAll(BooleanIterable elements) voidMethods inherited from interface org.eclipse.collections.api.BooleanIterable
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, selectMethods inherited from interface org.eclipse.collections.api.set.primitive.BooleanSet
isProperSubsetOf, isSubsetOfMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
removeIfMethods inherited from interface org.eclipse.collections.api.set.primitive.MutableBooleanSet
difference, intersect, symmetricDifference, tap, union
-
Constructor Details
-
BooleanHashSet
public BooleanHashSet() -
BooleanHashSet
public BooleanHashSet(boolean... elements) -
BooleanHashSet
-
-
Method Details
-
boxed
- Specified by:
boxedin interfaceMutableBooleanSet
-
newSetWith
-
newSet
-
newEmpty
- Specified by:
newEmptyin interfaceMutableBooleanCollection- Specified by:
newEmptyin interfaceMutableBooleanSet- Since:
- 11.0.
-
add
public boolean add(boolean element) - Specified by:
addin interfaceMutableBooleanCollection
-
addAll
public boolean addAll(boolean... source) - Specified by:
addAllin interfaceMutableBooleanCollection
-
addAll
- Specified by:
addAllin interfaceMutableBooleanCollection
-
remove
public boolean remove(boolean value) - Specified by:
removein interfaceMutableBooleanCollection
-
removeAll
- Specified by:
removeAllin interfaceMutableBooleanCollection
-
removeAll
public boolean removeAll(boolean... source) - Specified by:
removeAllin interfaceMutableBooleanCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableBooleanCollection
-
retainAll
public boolean retainAll(boolean... source) - Specified by:
retainAllin interfaceMutableBooleanCollection
-
clear
public void clear()- Specified by:
clearin interfaceMutableBooleanCollection
-
booleanIterator
- Specified by:
booleanIteratorin interfaceBooleanIterable- Specified by:
booleanIteratorin interfaceMutableBooleanCollection
-
each
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceBooleanIterable
-
chunk
- Specified by:
chunkin interfaceBooleanIterable
-
count
- Specified by:
countin interfaceBooleanIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceBooleanIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
select
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanSet- Specified by:
selectin interfaceMutableBooleanCollection- Specified by:
selectin interfaceMutableBooleanSet
-
reject
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanSet- Specified by:
rejectin interfaceMutableBooleanCollection- Specified by:
rejectin interfaceMutableBooleanSet
-
detectIfNone
- Specified by:
detectIfNonein interfaceBooleanIterable
-
collect
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceBooleanSet- Specified by:
collectin interfaceMutableBooleanCollection- Specified by:
collectin interfaceMutableBooleanSet
-
toArray
public boolean[] toArray()- Specified by:
toArrayin interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target) - Specified by:
toArrayin interfaceBooleanIterable
-
contains
public boolean contains(boolean value) - Specified by:
containsin interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source) - Specified by:
containsAllin interfaceBooleanIterable
-
containsAll
- Specified by:
containsAllin interfaceBooleanIterable
-
with
- Specified by:
within interfaceMutableBooleanCollection- Specified by:
within interfaceMutableBooleanSet
-
without
- Specified by:
withoutin interfaceMutableBooleanCollection- Specified by:
withoutin interfaceMutableBooleanSet
-
withAll
- Specified by:
withAllin interfaceMutableBooleanCollection- Specified by:
withAllin interfaceMutableBooleanSet
-
withoutAll
- Specified by:
withoutAllin interfaceMutableBooleanCollection- Specified by:
withoutAllin interfaceMutableBooleanSet
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableBooleanCollection- Specified by:
asUnmodifiablein interfaceMutableBooleanSet
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableBooleanCollection- Specified by:
asSynchronizedin interfaceMutableBooleanSet
-
freeze
- Specified by:
freezein interfaceBooleanSet- Specified by:
freezein interfaceMutableBooleanSet
-
toImmutable
- Specified by:
toImmutablein interfaceBooleanSet- Specified by:
toImmutablein interfaceMutableBooleanCollection- Specified by:
toImmutablein interfaceMutableBooleanSet
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
cartesianProduct
- Specified by:
cartesianProductin interfaceBooleanSet
-
equals
- Specified by:
equalsin interfaceBooleanSet- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceBooleanSet- Overrides:
hashCodein classObject
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
- Specified by:
toListin interfaceBooleanIterable
-
toSet
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
- Specified by:
toBagin interfaceBooleanIterable
-
asLazy
- Specified by:
asLazyin interfaceBooleanIterable
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-