Class LazyByteIterableAdapter
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable
-
- org.eclipse.collections.impl.lazy.primitive.LazyByteIterableAdapter
-
- All Implemented Interfaces:
ByteIterable
,LazyByteIterable
,PrimitiveIterable
public class LazyByteIterableAdapter extends AbstractLazyByteIterable
This file was automatically generated from template file lazyPrimitiveIterableAdapter.stg.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description LazyByteIterableAdapter(ByteIterable delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allSatisfy(BytePredicate predicate)
boolean
anySatisfy(BytePredicate predicate)
void
appendString(Appendable appendable)
void
appendString(Appendable appendable, String separator)
void
appendString(Appendable appendable, String start, String separator, String end)
double
average()
ByteIterator
byteIterator()
boolean
contains(byte value)
boolean
containsAll(byte... source)
boolean
containsAll(ByteIterable source)
int
count(BytePredicate predicate)
byte
detectIfNone(BytePredicate predicate, byte ifNone)
void
each(ByteProcedure procedure)
<T> T
injectInto(T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function)
boolean
isEmpty()
String
makeString()
String
makeString(String separator)
String
makeString(String start, String separator, String end)
byte
max()
byte
maxIfEmpty(byte defaultValue)
double
median()
byte
min()
byte
minIfEmpty(byte defaultValue)
boolean
noneSatisfy(BytePredicate predicate)
boolean
notEmpty()
int
size()
long
sum()
byte[]
toArray()
MutableByteBag
toBag()
MutableByteList
toList()
MutableByteSet
toSet()
byte[]
toSortedArray()
MutableByteList
toSortedList()
String
toString()
-
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyByteIterable
asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, select, tap
-
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, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray, toSortedList, toSortedListBy, toSortedListBy
-
-
-
-
Constructor Detail
-
LazyByteIterableAdapter
public LazyByteIterableAdapter(ByteIterable delegate)
-
-
Method Detail
-
byteIterator
public ByteIterator byteIterator()
-
each
public void each(ByteProcedure procedure)
- Since:
- 7.0.
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyByteIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyByteIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyByteIterable
-
count
public int count(BytePredicate predicate)
- Specified by:
count
in interfaceByteIterable
- Overrides:
count
in classAbstractLazyByteIterable
-
anySatisfy
public boolean anySatisfy(BytePredicate predicate)
- Specified by:
anySatisfy
in interfaceByteIterable
- Overrides:
anySatisfy
in classAbstractLazyByteIterable
-
allSatisfy
public boolean allSatisfy(BytePredicate predicate)
- Specified by:
allSatisfy
in interfaceByteIterable
- Overrides:
allSatisfy
in classAbstractLazyByteIterable
-
noneSatisfy
public boolean noneSatisfy(BytePredicate predicate)
- Specified by:
noneSatisfy
in interfaceByteIterable
- Overrides:
noneSatisfy
in classAbstractLazyByteIterable
-
detectIfNone
public byte detectIfNone(BytePredicate predicate, byte ifNone)
- Specified by:
detectIfNone
in interfaceByteIterable
- Overrides:
detectIfNone
in classAbstractLazyByteIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceByteIterable
- Overrides:
sum
in classAbstractLazyByteIterable
-
max
public byte max()
- Specified by:
max
in interfaceByteIterable
- Overrides:
max
in classAbstractLazyByteIterable
-
min
public byte min()
- Specified by:
min
in interfaceByteIterable
- Overrides:
min
in classAbstractLazyByteIterable
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)
- Specified by:
minIfEmpty
in interfaceByteIterable
- Overrides:
minIfEmpty
in classAbstractLazyByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)
- Specified by:
maxIfEmpty
in interfaceByteIterable
- Overrides:
maxIfEmpty
in classAbstractLazyByteIterable
-
average
public double average()
- Specified by:
average
in interfaceByteIterable
- Overrides:
average
in classAbstractLazyByteIterable
-
median
public double median()
- Specified by:
median
in interfaceByteIterable
- Overrides:
median
in classAbstractLazyByteIterable
-
toSortedArray
public byte[] toSortedArray()
- Specified by:
toSortedArray
in interfaceByteIterable
- Overrides:
toSortedArray
in classAbstractLazyByteIterable
-
toSortedList
public MutableByteList toSortedList()
- Specified by:
toSortedList
in interfaceByteIterable
- Overrides:
toSortedList
in classAbstractLazyByteIterable
-
toArray
public byte[] toArray()
- Specified by:
toArray
in interfaceByteIterable
- Overrides:
toArray
in classAbstractLazyByteIterable
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classAbstractLazyByteIterable
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
- Overrides:
makeString
in classAbstractLazyByteIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
- Overrides:
makeString
in classAbstractLazyByteIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
- Overrides:
makeString
in classAbstractLazyByteIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
- Overrides:
appendString
in classAbstractLazyByteIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
- Overrides:
appendString
in classAbstractLazyByteIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
- Overrides:
appendString
in classAbstractLazyByteIterable
-
contains
public boolean contains(byte value)
- Specified by:
contains
in interfaceByteIterable
- Overrides:
contains
in classAbstractLazyByteIterable
-
containsAll
public boolean containsAll(byte... source)
- Specified by:
containsAll
in interfaceByteIterable
- Overrides:
containsAll
in classAbstractLazyByteIterable
-
containsAll
public boolean containsAll(ByteIterable source)
- Specified by:
containsAll
in interfaceByteIterable
- Overrides:
containsAll
in classAbstractLazyByteIterable
-
toList
public MutableByteList toList()
- Specified by:
toList
in interfaceByteIterable
- Overrides:
toList
in classAbstractLazyByteIterable
-
toSet
public MutableByteSet toSet()
- Specified by:
toSet
in interfaceByteIterable
- Overrides:
toSet
in classAbstractLazyByteIterable
-
toBag
public MutableByteBag toBag()
- Specified by:
toBag
in interfaceByteIterable
- Overrides:
toBag
in classAbstractLazyByteIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectByteToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceByteIterable
- Overrides:
injectInto
in classAbstractLazyByteIterable
-
-