@NotThreadSafe public final class ByteHashBag extends AbstractByteIterable implements org.eclipse.collections.api.bag.primitive.MutableByteBag, Externalizable
HashBag, and is memory-optimized for byte primitives.
This file was automatically generated from template file primitiveHashBag.stg.| Constructor and Description |
|---|
ByteHashBag() |
ByteHashBag(byte... elements) |
ByteHashBag(ByteHashBag bag) |
ByteHashBag(org.eclipse.collections.api.ByteIterable iterable) |
ByteHashBag(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(byte item) |
boolean |
addAll(byte... source) |
boolean |
addAll(org.eclipse.collections.api.ByteIterable source) |
void |
addOccurrences(byte item,
int occurrences) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
asUnmodifiable() |
org.eclipse.collections.api.iterator.MutableByteIterator |
byteIterator() |
void |
clear() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function) |
boolean |
contains(byte value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
byte |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
boolean |
equals(Object otherBag) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure) |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
byte |
max() |
byte |
min() |
static ByteHashBag |
newBag(org.eclipse.collections.api.bag.primitive.ByteBag source) |
static ByteHashBag |
newBag(org.eclipse.collections.api.ByteIterable source) |
static ByteHashBag |
newBag(int size) |
static ByteHashBag |
newBagWith(byte... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
notEmpty() |
int |
occurrencesOf(byte item) |
void |
readExternal(ObjectInput in) |
ByteHashBag |
reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
remove(byte item) |
boolean |
removeAll(byte... source) |
boolean |
removeAll(org.eclipse.collections.api.ByteIterable source) |
boolean |
removeOccurrences(byte item,
int occurrences) |
boolean |
retainAll(byte... source) |
boolean |
retainAll(org.eclipse.collections.api.ByteIterable source) |
ByteHashBag |
select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
int |
size() |
int |
sizeDistinct() |
long |
sum() |
byte[] |
toArray() |
org.eclipse.collections.api.bag.primitive.ImmutableByteBag |
toImmutable() |
ByteHashBag |
with(byte element) |
ByteHashBag |
with(byte element1,
byte element2) |
ByteHashBag |
with(byte element1,
byte element2,
byte element3) |
ByteHashBag |
withAll(org.eclipse.collections.api.ByteIterable iterable) |
ByteHashBag |
without(byte element) |
ByteHashBag |
withoutAll(org.eclipse.collections.api.ByteIterable iterable) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic ByteHashBag()
public ByteHashBag(int size)
public ByteHashBag(org.eclipse.collections.api.ByteIterable iterable)
public ByteHashBag(byte... elements)
public ByteHashBag(ByteHashBag bag)
public static ByteHashBag newBag(int size)
public static ByteHashBag newBagWith(byte... source)
public static ByteHashBag newBag(org.eclipse.collections.api.ByteIterable source)
public static ByteHashBag newBag(org.eclipse.collections.api.bag.primitive.ByteBag source)
public boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterableisEmpty in class AbstractByteIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablenotEmpty in class AbstractByteIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.ByteBagpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic ByteHashBag with(byte element)
with in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwith in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic ByteHashBag with(byte element1, byte element2)
public ByteHashBag with(byte element1, byte element2, byte element3)
public ByteHashBag withAll(org.eclipse.collections.api.ByteIterable iterable)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic ByteHashBag without(byte element)
without in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic ByteHashBag withoutAll(org.eclipse.collections.api.ByteIterable iterable)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean contains(byte value)
contains in interface org.eclipse.collections.api.ByteIterablepublic int occurrencesOf(byte item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.ByteBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.ByteBagpublic boolean add(byte item)
add in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean remove(byte item)
remove in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean addAll(byte... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean addAll(org.eclipse.collections.api.ByteIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean removeAll(byte... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean removeAll(org.eclipse.collections.api.ByteIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean retainAll(org.eclipse.collections.api.ByteIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic boolean retainAll(byte... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic void addOccurrences(byte item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableByteBagpublic boolean removeOccurrences(byte item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableByteBagpublic void forEach(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEach in interface org.eclipse.collections.api.ByteIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
each in interface org.eclipse.collections.api.ByteIterablepublic ByteHashBag select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.ByteBagselect in interface org.eclipse.collections.api.bag.primitive.MutableByteBagselect in interface org.eclipse.collections.api.ByteIterableselect in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic ByteHashBag reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.ByteBagreject in interface org.eclipse.collections.api.bag.primitive.MutableByteBagreject in interface org.eclipse.collections.api.ByteIterablereject in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectByteToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.ByteIterablepublic boolean equals(Object otherBag)
public int hashCode()
public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
count in interface org.eclipse.collections.api.ByteIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
anySatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
allSatisfy in interface org.eclipse.collections.api.ByteIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.ByteIterablepublic byte detectIfNone(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate,
byte ifNone)
detectIfNone in interface org.eclipse.collections.api.ByteIterablepublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.ByteBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableByteBagcollect in interface org.eclipse.collections.api.ByteIterablecollect in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic byte max()
max in interface org.eclipse.collections.api.ByteIterablepublic byte min()
min in interface org.eclipse.collections.api.ByteIterablepublic long sum()
sum in interface org.eclipse.collections.api.ByteIterablepublic byte[] toArray()
toArray in interface org.eclipse.collections.api.ByteIterablepublic org.eclipse.collections.api.bag.primitive.MutableByteBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableByteBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic org.eclipse.collections.api.bag.primitive.MutableByteBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableByteBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableByteBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.ByteBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableByteBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic org.eclipse.collections.api.iterator.MutableByteIterator byteIterator()
byteIterator in interface org.eclipse.collections.api.ByteIterablebyteIterator in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2017. All rights reserved.