Class AbstractUnmodifiableByteCollection
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection
- All Implemented Interfaces:
Serializable,ByteIterable,MutableByteCollection,PrimitiveIterable
- Direct Known Subclasses:
UnmodifiableByteBag,UnmodifiableByteCollection,UnmodifiableByteList,UnmodifiableByteSet
public abstract class AbstractUnmodifiableByteCollection
extends Object
implements MutableByteCollection, Serializable
This file was automatically generated from template file abstractUnmodifiablePrimitiveCollection.stg.
- Since:
- 3.1.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(byte newItem) 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()chunk(int size) voidclear()<V> MutableCollection<V>collect(ByteToObjectFunction<? extends V> function) booleancontains(byte value) booleancontainsAll(byte... source) booleancontainsAll(ByteIterable source) booleancontainsAny(byte... source) booleancontainsAny(ByteIterable source) booleancontainsNone(byte... source) booleancontainsNone(ByteIterable source) intcount(BytePredicate predicate) bytedetectIfNone(BytePredicate predicate, byte ifNone) voideach(ByteProcedure procedure) <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) booleannoneSatisfy(BytePredicate predicate) booleannotEmpty()longreduce(LongByteToLongFunction accumulator) longreduceIfEmpty(LongByteToLongFunction accumulator, long defaultValue) reject(BytePredicate predicate) booleanremove(byte value) booleanremoveAll(byte... source) booleanremoveAll(ByteIterable source) booleanremoveIf(BytePredicate predicate) booleanretainAll(byte... source) booleanretainAll(ByteIterable source) select(BytePredicate predicate) intsize()longsum()byte[]toArray()byte[]toArray(byte[] target) toBag()toList()toSet()byte[]toString()with(byte element) withAll(ByteIterable elements) without(byte element) withoutAll(ByteIterable elements) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.ByteIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableByteCollection
newEmpty, tap
-
Method Details
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableByteCollection
-
contains
public boolean contains(byte value) - Specified by:
containsin interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source) - Specified by:
containsAllin interfaceByteIterable
-
containsAll
- Specified by:
containsAllin interfaceByteIterable
-
containsAny
public boolean containsAny(byte... source) - Specified by:
containsAnyin interfaceByteIterable
-
containsAny
- Specified by:
containsAnyin interfaceByteIterable
-
containsNone
public boolean containsNone(byte... source) - Specified by:
containsNonein interfaceByteIterable
-
containsNone
- Specified by:
containsNonein interfaceByteIterable
-
add
public boolean add(byte newItem) - Specified by:
addin interfaceMutableByteCollection
-
addAll
public boolean addAll(byte... source) - Specified by:
addAllin interfaceMutableByteCollection
-
addAll
- Specified by:
addAllin interfaceMutableByteCollection
-
remove
public boolean remove(byte value) - Specified by:
removein interfaceMutableByteCollection
-
removeIf
- Specified by:
removeIfin interfaceMutableByteCollection- Since:
- 9.1
-
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
-
byteIterator
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteCollection
-
each
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceByteIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceByteIterable
-
select
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceMutableByteCollection
-
reject
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceMutableByteCollection
-
collect
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceMutableByteCollection
-
with
- Specified by:
within interfaceMutableByteCollection
-
without
- Specified by:
withoutin interfaceMutableByteCollection
-
withAll
- Specified by:
withAllin interfaceMutableByteCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableByteCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteCollection
-
toImmutable
- Specified by:
toImmutablein interfaceMutableByteCollection
-
asLazy
- Specified by:
asLazyin interfaceByteIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceByteIterable
-
sum
public long sum()- Specified by:
sumin interfaceByteIterable
-
max
public byte max()- Specified by:
maxin interfaceByteIterable
-
min
public byte min()- Specified by:
minin interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue) - Specified by:
minIfEmptyin interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue) - Specified by:
maxIfEmptyin interfaceByteIterable
-
average
public double average()- Specified by:
averagein interfaceByteIterable
-
median
public double median()- Specified by:
medianin interfaceByteIterable
-
toSortedList
- Specified by:
toSortedListin interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable
-
toArray
public byte[] toArray()- Specified by:
toArrayin interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target) - Specified by:
toArrayin interfaceByteIterable
-
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 interfaceByteIterable
-
toSet
- Specified by:
toSetin interfaceByteIterable
-
toBag
- Specified by:
toBagin interfaceByteIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceByteIterable
-
reduce
- Specified by:
reducein interfaceByteIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceByteIterable
-
chunk
- Specified by:
chunkin interfaceByteIterable
-