MutableFloatCollection, FloatIterable, FloatList, MutableFloatList, OrderedFloatIterable, ReversibleFloatIterable, PrimitiveIterablepublic final class SynchronizedFloatList extends AbstractSynchronizedFloatCollection implements MutableFloatList
MutableFloatList. It is imperative that the user manually synchronize on the collection when iterating over it using the
FloatIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableFloatList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| Constructor | Description |
|---|---|
SynchronizedFloatList(MutableFloatList list) |
|
SynchronizedFloatList(MutableFloatList list,
java.lang.Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAllAtIndex(int index,
float... source) |
|
boolean |
addAllAtIndex(int index,
FloatIterable source) |
|
void |
addAtIndex(int index,
float element) |
|
LazyFloatIterable |
asLazy() |
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.
|
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 |
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() |
|
SynchronizedFloatList |
with(float element) |
|
SynchronizedFloatList |
withAll(FloatIterable elements) |
|
SynchronizedFloatList |
without(float element) |
|
SynchronizedFloatList |
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, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, floatIterator, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, average, averageIfEmpty, 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, 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 SynchronizedFloatList(MutableFloatList list)
public SynchronizedFloatList(MutableFloatList list, java.lang.Object newLock)
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 SynchronizedFloatList with(float element)
with in interface MutableFloatCollectionwith in interface MutableFloatListwith in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatList without(float element)
without in interface MutableFloatCollectionwithout in interface MutableFloatListwithout in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatList withAll(FloatIterable elements)
withAll in interface MutableFloatCollectionwithAll in interface MutableFloatListwithAll in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatList withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatCollectionwithoutAll in interface MutableFloatListwithoutAll in class AbstractSynchronizedFloatCollectionpublic 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 AbstractSynchronizedFloatCollectionpublic 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 AbstractSynchronizedFloatCollectionpublic <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 AbstractSynchronizedFloatCollectionpublic 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 LazyFloatIterable asLazy()
FloatIterableasLazy in interface FloatIterableasLazy in class AbstractSynchronizedFloatCollectionpublic MutableFloatList asUnmodifiable()
asUnmodifiable in interface MutableFloatCollectionasUnmodifiable in interface MutableFloatListasUnmodifiable in class AbstractSynchronizedFloatCollectionpublic MutableFloatList asSynchronized()
asSynchronized in interface MutableFloatCollectionasSynchronized in interface MutableFloatListasSynchronized in class AbstractSynchronizedFloatCollectionpublic ImmutableFloatList toImmutable()
MutableFloatListtoImmutable in interface FloatListtoImmutable in interface MutableFloatCollectiontoImmutable in interface MutableFloatListtoImmutable in class AbstractSynchronizedFloatCollectionpublic MutableFloatList reverseThis()
reverseThis in interface MutableFloatListpublic MutableFloatList toReversed()
toReversed in interface FloatListtoReversed in interface MutableFloatListtoReversed in interface ReversibleFloatIterablepublic LazyFloatIterable asReversed()
asReversed in interface ReversibleFloatIterablepublic void forEachWithIndex(FloatIntProcedure procedure)
forEachWithIndex in interface OrderedFloatIterablepublic <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–2018. All rights reserved.