MutableFloatCollection
, FloatIterable
, FloatList
, MutableFloatList
, OrderedFloatIterable
, ReversibleFloatIterable
, PrimitiveIterable
public 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 FormConstructor | 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, toString
allSatisfy, 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, toSortedList
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedFloatList(MutableFloatList list)
public SynchronizedFloatList(MutableFloatList list, java.lang.Object newLock)
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 SynchronizedFloatList with(float element)
with
in interface MutableFloatCollection
with
in interface MutableFloatList
with
in class AbstractSynchronizedFloatCollection
public SynchronizedFloatList without(float element)
without
in interface MutableFloatCollection
without
in interface MutableFloatList
without
in class AbstractSynchronizedFloatCollection
public SynchronizedFloatList withAll(FloatIterable elements)
withAll
in interface MutableFloatCollection
withAll
in interface MutableFloatList
withAll
in class AbstractSynchronizedFloatCollection
public SynchronizedFloatList withoutAll(FloatIterable elements)
withoutAll
in interface MutableFloatCollection
withoutAll
in interface MutableFloatList
withoutAll
in class AbstractSynchronizedFloatCollection
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 AbstractSynchronizedFloatCollection
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 AbstractSynchronizedFloatCollection
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 AbstractSynchronizedFloatCollection
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(java.lang.Object otherList)
FloatList
List.equals(Object)
.public int hashCode()
FloatList
List.hashCode()
.public LazyFloatIterable asLazy()
FloatIterable
asLazy
in interface FloatIterable
asLazy
in class AbstractSynchronizedFloatCollection
public MutableFloatList asUnmodifiable()
asUnmodifiable
in interface MutableFloatCollection
asUnmodifiable
in interface MutableFloatList
asUnmodifiable
in class AbstractSynchronizedFloatCollection
public MutableFloatList asSynchronized()
asSynchronized
in interface MutableFloatCollection
asSynchronized
in interface MutableFloatList
asSynchronized
in class AbstractSynchronizedFloatCollection
public ImmutableFloatList toImmutable()
MutableFloatList
toImmutable
in interface FloatList
toImmutable
in interface MutableFloatCollection
toImmutable
in interface MutableFloatList
toImmutable
in class AbstractSynchronizedFloatCollection
public MutableFloatList reverseThis()
reverseThis
in interface MutableFloatList
public MutableFloatList toReversed()
toReversed
in interface FloatList
toReversed
in interface MutableFloatList
toReversed
in interface ReversibleFloatIterable
public LazyFloatIterable asReversed()
asReversed
in interface ReversibleFloatIterable
public void forEachWithIndex(FloatIntProcedure procedure)
forEachWithIndex
in interface OrderedFloatIterable
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(java.lang.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 java.util.Collection<V>> R collectWithIndex(FloatIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedFloatIterable
Copyright © 2004–2018. All rights reserved.