Class ByteHashSet
java.lang.Object
org.eclipse.collections.impl.set.mutable.primitive.ByteHashSet
- All Implemented Interfaces:
Externalizable,Serializable,ByteIterable,MutableByteCollection,PrimitiveIterable,ByteSet,MutableByteSet
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionByteHashSet(byte... elements) ByteHashSet(int initialCapacity) Deprecated.since 5.0.ByteHashSet(ByteHashSet set) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(byte element) booleanaddAll(byte... source) booleanaddAll(ByteIterable source) booleanallSatisfy(BytePredicate predicate) booleananySatisfy(BytePredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()boxed()cartesianProduct(ByteSet set) chunk(int size) voidclear()<V> MutableSet<V>collect(ByteToObjectFunction<? extends V> function) booleancontains(byte value) booleancontainsAll(byte... source) booleancontainsAll(ByteIterable source) intcount(BytePredicate predicate) bytedetectIfNone(BytePredicate predicate, byte ifNone) voideach(ByteProcedure procedure) booleanvoidforEach(ByteProcedure procedure) freeze()inthashCode()<T> TinjectInto(T injectedValue, ObjectByteToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) bytemax()bytemaxIfEmpty(byte defaultValue) doublemedian()bytemin()byteminIfEmpty(byte defaultValue) newEmpty()static ByteHashSetnewSet(ByteIterable source) static ByteHashSetnewSetWith(byte... source) booleannoneSatisfy(BytePredicate predicate) booleannotEmpty()voidreject(BytePredicate predicate) booleanremove(byte value) booleanremoveAll(byte... source) booleanremoveAll(ByteIterable source) booleanretainAll(byte... source) booleanretainAll(ByteIterable source) select(BytePredicate predicate) intsize()longsum()byte[]toArray()byte[]toArray(byte[] array) toBag()toList()toSet()byte[]toString()with(byte element) withAll(ByteIterable elements) without(byte element) withoutAll(ByteIterable elements) voidMethods inherited from interface org.eclipse.collections.api.ByteIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.set.primitive.ByteSet
isProperSubsetOf, isSubsetOfMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableByteCollection
removeIfMethods inherited from interface org.eclipse.collections.api.set.primitive.MutableByteSet
difference, intersect, symmetricDifference, tap, union
-
Constructor Details
-
ByteHashSet
public ByteHashSet() -
ByteHashSet
Deprecated.since 5.0.UseByteHashSet()instead. -
ByteHashSet
public ByteHashSet(byte... elements) -
ByteHashSet
-
-
Method Details
-
boxed
- Specified by:
boxedin interfaceMutableByteSet
-
newSet
-
newSetWith
-
add
public boolean add(byte element) - Specified by:
addin interfaceMutableByteCollection
-
remove
public boolean remove(byte value) - Specified by:
removein interfaceMutableByteCollection
-
contains
public boolean contains(byte value) - Specified by:
containsin interfaceByteIterable
-
cartesianProduct
- Specified by:
cartesianProductin interfaceByteSet
-
equals
-
hashCode
public int hashCode() -
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
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
-
addAll
public boolean addAll(byte... source) - Specified by:
addAllin interfaceMutableByteCollection
-
addAll
- Specified by:
addAllin interfaceMutableByteCollection
-
removeAll
- Specified by:
removeAllin interfaceMutableByteCollection
-
removeAll
public boolean removeAll(byte... source) - Specified by:
removeAllin interfaceMutableByteCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableByteCollection
-
retainAll
public boolean retainAll(byte... source) - Specified by:
retainAllin interfaceMutableByteCollection
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteCollection
-
with
- Specified by:
within interfaceMutableByteCollection- Specified by:
within interfaceMutableByteSet
-
without
- Specified by:
withoutin interfaceMutableByteCollection- Specified by:
withoutin interfaceMutableByteSet
-
withAll
- Specified by:
withAllin interfaceMutableByteCollection- Specified by:
withAllin interfaceMutableByteSet
-
withoutAll
- Specified by:
withoutAllin interfaceMutableByteCollection- Specified by:
withoutAllin interfaceMutableByteSet
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteCollection- Specified by:
asUnmodifiablein interfaceMutableByteSet
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteCollection- Specified by:
asSynchronizedin interfaceMutableByteSet
-
toImmutable
- Specified by:
toImmutablein interfaceByteSet- Specified by:
toImmutablein interfaceMutableByteCollection- Specified by:
toImmutablein interfaceMutableByteSet
-
newEmpty
- Specified by:
newEmptyin interfaceMutableByteCollection- Specified by:
newEmptyin interfaceMutableByteSet- Since:
- 9.2.
-
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteCollection
-
toArray
public byte[] toArray()- Specified by:
toArrayin interfaceByteIterable
-
toArray
public byte[] toArray(byte[] array) - Specified by:
toArrayin interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source) - Specified by:
containsAllin interfaceByteIterable
-
containsAll
- Specified by:
containsAllin interfaceByteIterable
-
forEach
- Specified by:
forEachin interfaceByteIterable
-
each
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceByteSet- Specified by:
selectin interfaceMutableByteCollection- Specified by:
selectin interfaceMutableByteSet
-
reject
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceByteSet- Specified by:
rejectin interfaceMutableByteCollection- Specified by:
rejectin interfaceMutableByteSet
-
collect
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceByteSet- Specified by:
collectin interfaceMutableByteCollection- Specified by:
collectin interfaceMutableByteSet
-
detectIfNone
- Specified by:
detectIfNonein interfaceByteIterable
-
count
- Specified by:
countin interfaceByteIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceByteIterable
-
toList
- Specified by:
toListin interfaceByteIterable
-
toSet
- Specified by:
toSetin interfaceByteIterable
-
toBag
- Specified by:
toBagin interfaceByteIterable
-
asLazy
- Specified by:
asLazyin interfaceByteIterable
-
sum
public long sum()- Specified by:
sumin interfaceByteIterable
-
max
public byte max()- Specified by:
maxin interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue) - Specified by:
maxIfEmptyin interfaceByteIterable
-
min
public byte min()- Specified by:
minin interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue) - Specified by:
minIfEmptyin interfaceByteIterable
-
average
public double average()- Specified by:
averagein interfaceByteIterable
-
median
public double median()- Specified by:
medianin interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable
-
toSortedList
- Specified by:
toSortedListin interfaceByteIterable
-
freeze
- Specified by:
freezein interfaceByteSet- Specified by:
freezein interfaceMutableByteSet
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceByteIterable
-
chunk
- Specified by:
chunkin interfaceByteIterable
-