Top Description Methods
org.eclipse.collections.api.list.primitive

public Interface ByteList

extends ReversibleByteIterable
Known Direct Subinterfaces
org.eclipse.collections.api.list.primitive.ImmutableByteList, org.eclipse.collections.api.list.primitive.MutableByteList
Imports
org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.block.function.primitive.ByteIntToObjectFunction, .ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ByteIntPredicate, .BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteByteProcedure, .ByteProcedure, org.eclipse.collections.api.list.ListIterable, org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable, org.eclipse.collections.api.tuple.primitive.ByteBytePair, .ByteObjectPair, java.util.Objects

This file was automatically generated from template file primitiveList.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public int
binarySearch(byte value)

public <V> ListIterable<V>
collect(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default <V> ListIterable<V>
collectWithIndex(ByteIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.collectWithIndex.

Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.

public ByteList
public long
public boolean
equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

public default void
forEachInBoth(ByteList other, ByteByteProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

public byte
get(int index)

public int
hashCode()

Follows the same general contract as java.util.List#hashCode().

public int
lastIndexOf(byte value)

public ByteList
reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.reject.

Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.

public default ByteList
rejectWithIndex(ByteIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.rejectWithIndex.

Returns a new ByteList excluding all elements with corresponding indexes matching the specified predicate.

public ByteList
select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.select.

Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.

public default ByteList
selectWithIndex(ByteIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.selectWithIndex.

Returns a new ByteList including all elements with corresponding indexes matching the specified predicate.

public ByteList
subList(int fromIndex, int toIndex)

public default ByteList
public ImmutableByteList
toImmutable()

Returns an immutable copy of this list.

public ByteList
public default <T> ListIterable<ByteObjectPair<T>>
zip(Iterable<T> iterable)

Returns a ListIterable formed from this ByteList and a ListIterable by combining corresponding elements in pairs.

public default ListIterable<ByteBytePair>
zipByte(ByteIterable iterable)

Returns a ListIterable formed from this ByteList and another ByteList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable:
asReversedgetLastinjectIntoWithIndex

Method Detail

binarySearchback to summary
public int binarySearch(byte value)
collectback to summary
public <V> ListIterable<V> collect(ByteToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.collect.

Doc from org.eclipse.collections.api.ByteIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
collectWithIndexback to summary
public default <V> ListIterable<V> collectWithIndex(ByteIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.collectWithIndex.

Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
distinctback to summary
public ByteList distinct()

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public long dotProduct(ByteList list)
equalsback to summary
public boolean equals(Object o)

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachInBothback to summary
public default void forEachInBoth(ByteList other, ByteByteProcedure procedure)

This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.

Since
11.1
getback to summary
public byte get(int index)
hashCodeback to summary
public int hashCode()

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(byte value)
rejectback to summary
public ByteList reject(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.reject.

Doc from org.eclipse.collections.api.ByteIterable.reject.

Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.

Annotations
@Override
rejectWithIndexback to summary
public default ByteList rejectWithIndex(ByteIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.rejectWithIndex.

Returns a new ByteList excluding all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
selectback to summary
public ByteList select(BytePredicate predicate)

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.select.

Doc from org.eclipse.collections.api.ByteIterable.select.

Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.

Annotations
@Override
selectWithIndexback to summary
public default ByteList selectWithIndex(ByteIntPredicate predicate)

Overrides default org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.selectWithIndex.

Returns a new ByteList including all elements with corresponding indexes matching the specified predicate.

Annotations
@Override
Since
11.1.
subListback to summary
public ByteList subList(int fromIndex, int toIndex)
Since
5.0.
See Also
java.util.List#subList(int fromIndex, int toIndex)
tapback to summary
public default ByteList tap(ByteProcedure procedure)

Overrides default org.eclipse.collections.api.ByteIterable.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableByteList toImmutable()

Returns an immutable copy of this list. If the list is immutable, it returns itself.

toReversedback to summary
public ByteList toReversed()

Redeclares org.eclipse.collections.api.ordered.primitive.ReversibleByteIterable.toReversed.

Annotations
@Override
Since
5.0.
zipback to summary
public default <T> ListIterable<ByteObjectPair<T>> zip(Iterable<T> iterable)

Returns a ListIterable formed from this ByteList and a ListIterable by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.

Since
9.1.
zipByteback to summary
public default ListIterable<ByteBytePair> zipByte(ByteIterable iterable)

Returns a ListIterable formed from this ByteList and another ByteList by combining corresponding elements in pairs. If one of the two ByteLists is longer than the other, its remaining elements are ignored.

Since
9.1.