Class AbstractSynchronizedByteCollection
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection
-
- All Implemented Interfaces:
Serializable
,ByteIterable
,MutableByteCollection
,PrimitiveIterable
- Direct Known Subclasses:
SynchronizedByteBag
,SynchronizedByteCollection
,SynchronizedByteList
,SynchronizedByteSet
public abstract class AbstractSynchronizedByteCollection extends Object implements MutableByteCollection, Serializable
This file was automatically generated from template file abstractSynchronizedPrimitiveCollection.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:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableByteCollection
-
select
public MutableByteCollection select(BytePredicate predicate)
- Specified by:
select
in interfaceByteIterable
- Specified by:
select
in interfaceMutableByteCollection
-
reject
public MutableByteCollection reject(BytePredicate predicate)
- Specified by:
reject
in interfaceByteIterable
- Specified by:
reject
in interfaceMutableByteCollection
-
collect
public <V> MutableCollection<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceByteIterable
- Specified by:
collect
in interfaceMutableByteCollection
-
with
public MutableByteCollection with(byte element)
- Specified by:
with
in interfaceMutableByteCollection
-
without
public MutableByteCollection without(byte element)
- Specified by:
without
in interfaceMutableByteCollection
-
withAll
public MutableByteCollection withAll(ByteIterable elements)
- Specified by:
withAll
in interfaceMutableByteCollection
-
withoutAll
public MutableByteCollection withoutAll(ByteIterable elements)
- Specified by:
withoutAll
in interfaceMutableByteCollection
-
asUnmodifiable
public MutableByteCollection asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableByteCollection
-
asSynchronized
public MutableByteCollection asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableByteCollection
-
toImmutable
public ImmutableByteCollection toImmutable()
- Specified by:
toImmutable
in interfaceMutableByteCollection
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazy
in interfaceByteIterable
-
contains
public boolean contains(byte value)
- Specified by:
contains
in interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source)
- Specified by:
containsAll
in interfaceByteIterable
-
containsAll
public boolean containsAll(ByteIterable source)
- Specified by:
containsAll
in interfaceByteIterable
-
containsAny
public boolean containsAny(byte... source)
- Specified by:
containsAny
in interfaceByteIterable
-
containsAny
public boolean containsAny(ByteIterable source)
- Specified by:
containsAny
in interfaceByteIterable
-
containsNone
public boolean containsNone(byte... source)
- Specified by:
containsNone
in interfaceByteIterable
-
containsNone
public boolean containsNone(ByteIterable source)
- Specified by:
containsNone
in interfaceByteIterable
-
add
public boolean add(byte newItem)
- Specified by:
add
in interfaceMutableByteCollection
-
addAll
public boolean addAll(byte... source)
- Specified by:
addAll
in interfaceMutableByteCollection
-
addAll
public boolean addAll(ByteIterable source)
- Specified by:
addAll
in interfaceMutableByteCollection
-
remove
public boolean remove(byte value)
- Specified by:
remove
in interfaceMutableByteCollection
-
removeIf
public boolean removeIf(BytePredicate predicate)
- Specified by:
removeIf
in interfaceMutableByteCollection
-
removeAll
public boolean removeAll(ByteIterable source)
- Specified by:
removeAll
in interfaceMutableByteCollection
-
removeAll
public boolean removeAll(byte... source)
- Specified by:
removeAll
in interfaceMutableByteCollection
-
retainAll
public boolean retainAll(ByteIterable source)
- Specified by:
retainAll
in interfaceMutableByteCollection
-
retainAll
public boolean retainAll(byte... source)
- Specified by:
retainAll
in interfaceMutableByteCollection
-
byteIterator
public MutableByteIterator byteIterator()
Must be called in a synchronized block.- Specified by:
byteIterator
in interfaceByteIterable
- Specified by:
byteIterator
in interfaceMutableByteCollection
-
each
public void each(ByteProcedure procedure)
- Specified by:
each
in interfaceByteIterable
- Since:
- 7.0.
-
count
public int count(BytePredicate predicate)
- Specified by:
count
in interfaceByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfy
in interfaceByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfy
in interfaceByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfy
in interfaceByteIterable
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNone
in interfaceByteIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceByteIterable
-
max
public byte max()
- Specified by:
max
in interfaceByteIterable
-
min
public byte min()
- Specified by:
min
in interfaceByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)
- Specified by:
minIfEmpty
in interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)
- Specified by:
maxIfEmpty
in interfaceByteIterable
-
average
public double average()
- Specified by:
average
in interfaceByteIterable
-
median
public double median()
- Specified by:
median
in interfaceByteIterable
-
toSortedList
public MutableByteList toSortedList()
- Specified by:
toSortedList
in interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()
- Specified by:
toSortedArray
in interfaceByteIterable
-
toArray
public byte[] toArray()
- Specified by:
toArray
in interfaceByteIterable
-
toArray
public byte[] toArray(byte[] target)
- Specified by:
toArray
in interfaceByteIterable
-
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 MutableByteList toList()
- Specified by:
toList
in interfaceByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSet
in interfaceByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBag
in interfaceByteIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceByteIterable
-
reduce
public long reduce(LongByteToLongFunction accumulator)
- Specified by:
reduce
in interfaceByteIterable
-
reduceIfEmpty
public long reduceIfEmpty(LongByteToLongFunction accumulator, long defaultValue)
- Specified by:
reduceIfEmpty
in interfaceByteIterable
-
chunk
public RichIterable<ByteIterable> chunk(int size)
- Specified by:
chunk
in interfaceByteIterable
-
-