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:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableByteCollection
newEmpty, tap
-
-
-
-
Method Detail
-
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
public boolean containsAll(ByteIterable source)
- Specified by:
containsAllin interfaceByteIterable
-
containsAny
public boolean containsAny(byte... source)
- Specified by:
containsAnyin interfaceByteIterable
-
containsAny
public boolean containsAny(ByteIterable source)
- Specified by:
containsAnyin interfaceByteIterable
-
containsNone
public boolean containsNone(byte... source)
- Specified by:
containsNonein interfaceByteIterable
-
containsNone
public boolean containsNone(ByteIterable source)
- 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
public boolean addAll(ByteIterable source)
- Specified by:
addAllin interfaceMutableByteCollection
-
remove
public boolean remove(byte value)
- Specified by:
removein interfaceMutableByteCollection
-
removeIf
public boolean removeIf(BytePredicate predicate)
- Specified by:
removeIfin interfaceMutableByteCollection- Since:
- 9.1
-
removeAll
public boolean removeAll(ByteIterable source)
- Specified by:
removeAllin interfaceMutableByteCollection
-
removeAll
public boolean removeAll(byte... source)
- Specified by:
removeAllin interfaceMutableByteCollection
-
retainAll
public boolean retainAll(ByteIterable source)
- Specified by:
retainAllin interfaceMutableByteCollection
-
retainAll
public boolean retainAll(byte... source)
- Specified by:
retainAllin interfaceMutableByteCollection
-
byteIterator
public MutableByteIterator byteIterator()
- Specified by:
byteIteratorin interfaceByteIterable- Specified by:
byteIteratorin interfaceMutableByteCollection
-
each
public void each(ByteProcedure procedure)
- Specified by:
eachin interfaceByteIterable- Since:
- 7.0.
-
count
public int count(BytePredicate predicate)
- Specified by:
countin interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfyin interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfyin interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfyin interfaceByteIterable
-
select
public MutableByteCollection select(BytePredicate predicate)
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceMutableByteCollection
-
reject
public MutableByteCollection reject(BytePredicate predicate)
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceMutableByteCollection
-
collect
public <V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceMutableByteCollection
-
with
public MutableByteCollection with(byte element)
- Specified by:
within interfaceMutableByteCollection
-
without
public MutableByteCollection without(byte element)
- Specified by:
withoutin interfaceMutableByteCollection
-
withAll
public MutableByteCollection withAll(ByteIterable elements)
- Specified by:
withAllin interfaceMutableByteCollection
-
withoutAll
public MutableByteCollection withoutAll(ByteIterable elements)
- Specified by:
withoutAllin interfaceMutableByteCollection
-
asUnmodifiable
public MutableByteCollection asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteCollection
-
asSynchronized
public MutableByteCollection asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteCollection
-
toImmutable
public ImmutableByteCollection toImmutable()
- Specified by:
toImmutablein interfaceMutableByteCollection
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazyin interfaceByteIterable
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- 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
public MutableByteList 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
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
public MutableByteList toList()
- Specified by:
toListin interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSetin interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBagin interfaceByteIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceByteIterable
-
reduce
public long reduce(LongByteToLongFunction accumulator)
- Specified by:
reducein interfaceByteIterable
-
reduceIfEmpty
public long reduceIfEmpty(LongByteToLongFunction accumulator, long defaultValue)
- Specified by:
reduceIfEmptyin interfaceByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- Specified by:
chunkin interfaceByteIterable
-
-