Serializable
, MutableFloatCollection
, FloatIterable
, FloatList
, MutableFloatList
, OrderedFloatIterable
, ReversibleFloatIterable
, PrimitiveIterable
public class UnmodifiableFloatList extends AbstractUnmodifiableFloatCollection implements MutableFloatList
Constructor | Description |
---|---|
UnmodifiableFloatList(MutableFloatList list) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
float... source) |
|
boolean |
addAllAtIndex(int index,
FloatIterable source) |
|
void |
addAtIndex(int index,
float element) |
|
LazyFloatIterable |
asReversed() |
|
MutableFloatList |
asSynchronized() |
|
MutableFloatList |
asUnmodifiable() |
|
int |
binarySearch(float value) |
|
<V> MutableList<V> |
collect(FloatToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
<V> MutableList<V> |
collectWithIndex(FloatIntToObjectFunction<? extends V> function) |
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
<V,R extends Collection<V>> |
collectWithIndex(FloatIntToObjectFunction<? extends V> function,
R target) |
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableFloatList |
distinct() |
|
double |
dotProduct(FloatList list) |
|
boolean |
equals(Object otherList) |
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(FloatIntProcedure procedure) |
|
float |
get(int index) |
|
float |
getFirst() |
|
float |
getLast() |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
indexOf(float value) |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectFloatIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(float value) |
|
MutableFloatList |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
MutableFloatList |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
float |
removeAtIndex(int index) |
|
MutableFloatList |
reverseThis() |
|
MutableFloatList |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified predicate.
|
float |
set(int index,
float element) |
|
MutableFloatList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableFloatList |
subList(int fromIndex,
int toIndex) |
|
ImmutableFloatList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableFloatList |
toReversed() |
|
UnmodifiableFloatList |
with(float element) |
|
UnmodifiableFloatList |
withAll(FloatIterable elements) |
|
UnmodifiableFloatList |
without(float element) |
|
UnmodifiableFloatList |
withoutAll(FloatIterable elements) |
|
<T> MutableList<FloatObjectPair<T>> |
zip(Iterable<T> iterable) |
Returns a
MutableList formed from this MutableFloatList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<FloatFloatPair> |
zipFloat(FloatIterable iterable) |
Returns a
MutableList formed from this MutableFloatList and another FloatList by
combining corresponding elements in pairs. |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, floatIterator, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public UnmodifiableFloatList(MutableFloatList list)
public float getFirst()
getFirst
in interface OrderedFloatIterable
public float getLast()
getLast
in interface ReversibleFloatIterable
public int indexOf(float value)
indexOf
in interface OrderedFloatIterable
public int lastIndexOf(float value)
lastIndexOf
in interface FloatList
public void addAtIndex(int index, float element)
addAtIndex
in interface MutableFloatList
public boolean addAllAtIndex(int index, float... source)
addAllAtIndex
in interface MutableFloatList
public boolean addAllAtIndex(int index, FloatIterable source)
addAllAtIndex
in interface MutableFloatList
public float removeAtIndex(int index)
removeAtIndex
in interface MutableFloatList
public float set(int index, float element)
set
in interface MutableFloatList
public UnmodifiableFloatList with(float element)
with
in interface MutableFloatCollection
with
in interface MutableFloatList
with
in class AbstractUnmodifiableFloatCollection
public UnmodifiableFloatList without(float element)
without
in interface MutableFloatCollection
without
in interface MutableFloatList
without
in class AbstractUnmodifiableFloatCollection
public UnmodifiableFloatList withAll(FloatIterable elements)
withAll
in interface MutableFloatCollection
withAll
in interface MutableFloatList
withAll
in class AbstractUnmodifiableFloatCollection
public UnmodifiableFloatList withoutAll(FloatIterable elements)
withoutAll
in interface MutableFloatCollection
withoutAll
in interface MutableFloatList
withoutAll
in class AbstractUnmodifiableFloatCollection
public MutableFloatList select(FloatPredicate predicate)
FloatIterable
select
in interface FloatIterable
select
in interface FloatList
select
in interface MutableFloatCollection
select
in interface MutableFloatList
select
in interface OrderedFloatIterable
select
in interface ReversibleFloatIterable
select
in class AbstractUnmodifiableFloatCollection
public MutableFloatList reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
reject
in interface FloatList
reject
in interface MutableFloatCollection
reject
in interface MutableFloatList
reject
in interface OrderedFloatIterable
reject
in interface ReversibleFloatIterable
reject
in class AbstractUnmodifiableFloatCollection
public <V> MutableList<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
collect
in interface FloatList
collect
in interface MutableFloatCollection
collect
in interface MutableFloatList
collect
in interface OrderedFloatIterable
collect
in interface ReversibleFloatIterable
collect
in class AbstractUnmodifiableFloatCollection
public MutableFloatList sortThis()
MutableFloatList
sortThis
in interface MutableFloatList
public int binarySearch(float value)
binarySearch
in interface FloatList
public double dotProduct(FloatList list)
dotProduct
in interface FloatList
public boolean equals(Object otherList)
FloatList
List.equals(Object)
.public int hashCode()
FloatList
List.hashCode()
.public MutableFloatList asUnmodifiable()
asUnmodifiable
in interface MutableFloatCollection
asUnmodifiable
in interface MutableFloatList
asUnmodifiable
in class AbstractUnmodifiableFloatCollection
public MutableFloatList asSynchronized()
asSynchronized
in interface MutableFloatCollection
asSynchronized
in interface MutableFloatList
asSynchronized
in class AbstractUnmodifiableFloatCollection
public ImmutableFloatList toImmutable()
MutableFloatList
toImmutable
in interface FloatList
toImmutable
in interface MutableFloatCollection
toImmutable
in interface MutableFloatList
toImmutable
in class AbstractUnmodifiableFloatCollection
public MutableFloatList newEmpty()
MutableFloatList
newEmpty
in interface MutableFloatCollection
newEmpty
in interface MutableFloatList
public MutableFloatList reverseThis()
reverseThis
in interface MutableFloatList
public MutableFloatList toReversed()
toReversed
in interface FloatList
toReversed
in interface MutableFloatList
toReversed
in interface ReversibleFloatIterable
public void forEachWithIndex(FloatIntProcedure procedure)
forEachWithIndex
in interface OrderedFloatIterable
public LazyFloatIterable asReversed()
asReversed
in interface ReversibleFloatIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedFloatIterable
injectIntoWithIndex
in interface ReversibleFloatIterable
public MutableFloatList distinct()
distinct
in interface FloatList
distinct
in interface MutableFloatList
distinct
in interface ReversibleFloatIterable
public MutableFloatList subList(int fromIndex, int toIndex)
subList
in interface FloatList
subList
in interface MutableFloatList
List.subList(int fromIndex, int toIndex)
public MutableList<FloatFloatPair> zipFloat(FloatIterable iterable)
MutableFloatList
MutableList
formed from this MutableFloatList
and another FloatList
by
combining corresponding elements in pairs. If one of the two FloatList
s is longer than the other, its
remaining elements are ignored.zipFloat
in interface FloatList
zipFloat
in interface MutableFloatList
public <T> MutableList<FloatObjectPair<T>> zip(Iterable<T> iterable)
MutableFloatList
MutableList
formed from this MutableFloatList
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.zip
in interface FloatList
zip
in interface MutableFloatList
public <V> MutableList<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex
in interface FloatList
collectWithIndex
in interface MutableFloatList
collectWithIndex
in interface OrderedFloatIterable
collectWithIndex
in interface ReversibleFloatIterable
public <V,R extends Collection<V>> R collectWithIndex(FloatIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedFloatIterable
Copyright © 2004–2019. All rights reserved.