Class BooleanHashSet
- java.lang.Object
-
- org.eclipse.collections.impl.set.mutable.primitive.BooleanHashSet
-
- All Implemented Interfaces:
Externalizable
,Serializable
,BooleanIterable
,MutableBooleanCollection
,PrimitiveIterable
,BooleanSet
,MutableBooleanSet
public class BooleanHashSet extends Object implements MutableBooleanSet, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BooleanHashSet()
BooleanHashSet(boolean... elements)
BooleanHashSet(BooleanHashSet set)
-
Method Summary
-
Methods 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, select
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.BooleanSet
isProperSubsetOf, isSubsetOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
removeIf
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableBooleanSet
difference, intersect, symmetricDifference, tap, union
-
-
-
-
Constructor Detail
-
BooleanHashSet
public BooleanHashSet()
-
BooleanHashSet
public BooleanHashSet(boolean... elements)
-
BooleanHashSet
public BooleanHashSet(BooleanHashSet set)
-
-
Method Detail
-
boxed
public MutableSet<Boolean> boxed()
- Specified by:
boxed
in interfaceMutableBooleanSet
-
newSetWith
public static BooleanHashSet newSetWith(boolean... source)
-
newSet
public static BooleanHashSet newSet(BooleanIterable source)
-
newEmpty
public BooleanHashSet newEmpty()
- Specified by:
newEmpty
in interfaceMutableBooleanCollection
- Specified by:
newEmpty
in interfaceMutableBooleanSet
- Since:
- 11.0.
-
add
public boolean add(boolean element)
- Specified by:
add
in interfaceMutableBooleanCollection
-
addAll
public boolean addAll(boolean... source)
- Specified by:
addAll
in interfaceMutableBooleanCollection
-
addAll
public boolean addAll(BooleanIterable source)
- Specified by:
addAll
in interfaceMutableBooleanCollection
-
remove
public boolean remove(boolean value)
- Specified by:
remove
in interfaceMutableBooleanCollection
-
removeAll
public boolean removeAll(BooleanIterable source)
- Specified by:
removeAll
in interfaceMutableBooleanCollection
-
removeAll
public boolean removeAll(boolean... source)
- Specified by:
removeAll
in interfaceMutableBooleanCollection
-
retainAll
public boolean retainAll(BooleanIterable source)
- Specified by:
retainAll
in interfaceMutableBooleanCollection
-
retainAll
public boolean retainAll(boolean... source)
- Specified by:
retainAll
in interfaceMutableBooleanCollection
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableBooleanCollection
-
booleanIterator
public MutableBooleanIterator booleanIterator()
- Specified by:
booleanIterator
in interfaceBooleanIterable
- Specified by:
booleanIterator
in interfaceMutableBooleanCollection
-
each
public void each(BooleanProcedure procedure)
- Specified by:
each
in interfaceBooleanIterable
- Since:
- 7.0.
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceBooleanIterable
-
chunk
public RichIterable<BooleanIterable> chunk(int size)
- Specified by:
chunk
in interfaceBooleanIterable
-
count
public int count(BooleanPredicate predicate)
- Specified by:
count
in interfaceBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfy
in interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfy
in interfaceBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfy
in interfaceBooleanIterable
-
select
public BooleanHashSet select(BooleanPredicate predicate)
- Specified by:
select
in interfaceBooleanIterable
- Specified by:
select
in interfaceBooleanSet
- Specified by:
select
in interfaceMutableBooleanCollection
- Specified by:
select
in interfaceMutableBooleanSet
-
reject
public BooleanHashSet reject(BooleanPredicate predicate)
- Specified by:
reject
in interfaceBooleanIterable
- Specified by:
reject
in interfaceBooleanSet
- Specified by:
reject
in interfaceMutableBooleanCollection
- Specified by:
reject
in interfaceMutableBooleanSet
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNone
in interfaceBooleanIterable
-
collect
public <V> MutableSet<V> collect(BooleanToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceBooleanIterable
- Specified by:
collect
in interfaceBooleanSet
- Specified by:
collect
in interfaceMutableBooleanCollection
- Specified by:
collect
in interfaceMutableBooleanSet
-
toArray
public boolean[] toArray()
- Specified by:
toArray
in interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target)
- Specified by:
toArray
in interfaceBooleanIterable
-
contains
public boolean contains(boolean value)
- Specified by:
contains
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
containsAll
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAll
in interfaceBooleanIterable
-
with
public BooleanHashSet with(boolean element)
- Specified by:
with
in interfaceMutableBooleanCollection
- Specified by:
with
in interfaceMutableBooleanSet
-
without
public BooleanHashSet without(boolean element)
- Specified by:
without
in interfaceMutableBooleanCollection
- Specified by:
without
in interfaceMutableBooleanSet
-
withAll
public BooleanHashSet withAll(BooleanIterable elements)
- Specified by:
withAll
in interfaceMutableBooleanCollection
- Specified by:
withAll
in interfaceMutableBooleanSet
-
withoutAll
public BooleanHashSet withoutAll(BooleanIterable elements)
- Specified by:
withoutAll
in interfaceMutableBooleanCollection
- Specified by:
withoutAll
in interfaceMutableBooleanSet
-
asUnmodifiable
public MutableBooleanSet asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableBooleanCollection
- Specified by:
asUnmodifiable
in interfaceMutableBooleanSet
-
asSynchronized
public MutableBooleanSet asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableBooleanCollection
- Specified by:
asSynchronized
in interfaceMutableBooleanSet
-
freeze
public BooleanSet freeze()
- Specified by:
freeze
in interfaceBooleanSet
- Specified by:
freeze
in interfaceMutableBooleanSet
-
toImmutable
public ImmutableBooleanSet toImmutable()
- Specified by:
toImmutable
in interfaceBooleanSet
- Specified by:
toImmutable
in interfaceMutableBooleanCollection
- Specified by:
toImmutable
in interfaceMutableBooleanSet
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
cartesianProduct
public LazyIterable<BooleanBooleanPair> cartesianProduct(BooleanSet set)
- Specified by:
cartesianProduct
in interfaceBooleanSet
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceBooleanSet
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceBooleanSet
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toList
in interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSet
in interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBag
in interfaceBooleanIterable
-
asLazy
public LazyBooleanIterable asLazy()
- Specified by:
asLazy
in interfaceBooleanIterable
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-
-