java.io.Serializable, MutableFloatCollection, FloatIterable, FloatList, MutableFloatList, OrderedFloatIterable, ReversibleFloatIterable, PrimitiveIterablepublic 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 java.util.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(java.lang.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(java.lang.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, toStringallSatisfy, 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, toSortedListadd, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableFloatList(MutableFloatList list)
public float getFirst()
getFirst in interface OrderedFloatIterablepublic float getLast()
getLast in interface ReversibleFloatIterablepublic int indexOf(float value)
indexOf in interface OrderedFloatIterablepublic int lastIndexOf(float value)
lastIndexOf in interface FloatListpublic void addAtIndex(int index,
float element)
addAtIndex in interface MutableFloatListpublic boolean addAllAtIndex(int index,
float... source)
addAllAtIndex in interface MutableFloatListpublic boolean addAllAtIndex(int index,
FloatIterable source)
addAllAtIndex in interface MutableFloatListpublic float removeAtIndex(int index)
removeAtIndex in interface MutableFloatListpublic float set(int index,
float element)
set in interface MutableFloatListpublic UnmodifiableFloatList with(float element)
with in interface MutableFloatCollectionwith in interface MutableFloatListwith in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatList without(float element)
without in interface MutableFloatCollectionwithout in interface MutableFloatListwithout in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatList withAll(FloatIterable elements)
withAll in interface MutableFloatCollectionwithAll in interface MutableFloatListwithAll in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatList withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatCollectionwithoutAll in interface MutableFloatListwithoutAll in class AbstractUnmodifiableFloatCollectionpublic MutableFloatList select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface FloatListselect in interface MutableFloatCollectionselect in interface MutableFloatListselect in interface OrderedFloatIterableselect in interface ReversibleFloatIterableselect in class AbstractUnmodifiableFloatCollectionpublic MutableFloatList reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface FloatListreject in interface MutableFloatCollectionreject in interface MutableFloatListreject in interface OrderedFloatIterablereject in interface ReversibleFloatIterablereject in class AbstractUnmodifiableFloatCollectionpublic <V> MutableList<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface FloatListcollect in interface MutableFloatCollectioncollect in interface MutableFloatListcollect in interface OrderedFloatIterablecollect in interface ReversibleFloatIterablecollect in class AbstractUnmodifiableFloatCollectionpublic MutableFloatList sortThis()
MutableFloatListsortThis in interface MutableFloatListpublic int binarySearch(float value)
binarySearch in interface FloatListpublic double dotProduct(FloatList list)
dotProduct in interface FloatListpublic boolean equals(java.lang.Object otherList)
FloatListList.equals(Object).public int hashCode()
FloatListList.hashCode().public MutableFloatList asUnmodifiable()
asUnmodifiable in interface MutableFloatCollectionasUnmodifiable in interface MutableFloatListasUnmodifiable in class AbstractUnmodifiableFloatCollectionpublic MutableFloatList asSynchronized()
asSynchronized in interface MutableFloatCollectionasSynchronized in interface MutableFloatListasSynchronized in class AbstractUnmodifiableFloatCollectionpublic ImmutableFloatList toImmutable()
MutableFloatListtoImmutable in interface FloatListtoImmutable in interface MutableFloatCollectiontoImmutable in interface MutableFloatListtoImmutable in class AbstractUnmodifiableFloatCollectionpublic MutableFloatList newEmpty()
MutableFloatListnewEmpty in interface MutableFloatCollectionnewEmpty in interface MutableFloatListpublic MutableFloatList reverseThis()
reverseThis in interface MutableFloatListpublic MutableFloatList toReversed()
toReversed in interface FloatListtoReversed in interface MutableFloatListtoReversed in interface ReversibleFloatIterablepublic void forEachWithIndex(FloatIntProcedure procedure)
forEachWithIndex in interface OrderedFloatIterablepublic LazyFloatIterable asReversed()
asReversed in interface ReversibleFloatIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectFloatIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedFloatIterableinjectIntoWithIndex in interface ReversibleFloatIterablepublic MutableFloatList distinct()
distinct in interface FloatListdistinct in interface MutableFloatListdistinct in interface ReversibleFloatIterablepublic MutableFloatList subList(int fromIndex, int toIndex)
subList in interface FloatListsubList in interface MutableFloatListList.subList(int fromIndex, int toIndex)public MutableList<FloatFloatPair> zipFloat(FloatIterable iterable)
MutableFloatListMutableList formed from this MutableFloatList and another FloatList by
combining corresponding elements in pairs. If one of the two FloatLists is longer than the other, its
remaining elements are ignored.zipFloat in interface FloatListzipFloat in interface MutableFloatListpublic <T> MutableList<FloatObjectPair<T>> zip(java.lang.Iterable<T> iterable)
MutableFloatListMutableList 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 FloatListzip in interface MutableFloatListpublic <V> MutableList<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)
collectWithIndex in interface FloatListcollectWithIndex in interface MutableFloatListcollectWithIndex in interface OrderedFloatIterablecollectWithIndex in interface ReversibleFloatIterablepublic <V,R extends java.util.Collection<V>> R collectWithIndex(FloatIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedFloatIterableCopyright © 2004–2020. All rights reserved.