Class UnmodifiableFloatList
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection
-
- org.eclipse.collections.impl.list.mutable.primitive.UnmodifiableFloatList
-
- All Implemented Interfaces:
Serializable
,MutableFloatCollection
,FloatIterable
,FloatList
,MutableFloatList
,OrderedFloatIterable
,ReversibleFloatIterable
,PrimitiveIterable
public class UnmodifiableFloatList extends AbstractUnmodifiableFloatCollection implements MutableFloatList
This file was automatically generated from template file unmodifiablePrimitiveList.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableFloatList(MutableFloatList list)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
MutableList<Float>
boxed()
<V> MutableList<V>
collect(FloatToObjectFunction<? extends V> function)
<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>>
RcollectWithIndex(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)
void
forEachWithIndex(FloatIntProcedure procedure)
float
get(int index)
float
getFirst()
float
getLast()
int
hashCode()
int
indexOf(float value)
<T> T
injectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T,? extends T> function)
int
lastIndexOf(float value)
MutableFloatList
newEmpty()
MutableFloatList
reject(FloatPredicate predicate)
MutableFloatList
rejectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.<R extends MutableFloatCollection>
RrejectWithIndex(FloatIntPredicate predicate, R target)
Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.float
removeAtIndex(int index)
MutableFloatList
reverseThis()
MutableFloatList
select(FloatPredicate predicate)
MutableFloatList
selectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.<R extends MutableFloatCollection>
RselectWithIndex(FloatIntPredicate predicate, R target)
Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.float
set(int index, float element)
MutableFloatList
shuffleThis()
MutableFloatList
sortThis()
MutableFloatList
subList(int fromIndex, int toIndex)
ImmutableFloatList
toImmutable()
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)
MutableList<FloatFloatPair>
zipFloat(FloatIterable iterable)
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, floatIterator, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from interface org.eclipse.collections.api.FloatIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.FloatList
forEachInBoth
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.MutableFloatList
shuffleThis, sortThis, sortThisBy, sortThisBy, swap, tap
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableFloatList
public UnmodifiableFloatList(MutableFloatList list)
-
-
Method Detail
-
getFirst
public float getFirst()
- Specified by:
getFirst
in interfaceOrderedFloatIterable
-
getLast
public float getLast()
- Specified by:
getLast
in interfaceReversibleFloatIterable
-
indexOf
public int indexOf(float value)
- Specified by:
indexOf
in interfaceOrderedFloatIterable
-
lastIndexOf
public int lastIndexOf(float value)
- Specified by:
lastIndexOf
in interfaceFloatList
-
boxed
public MutableList<Float> boxed()
- Specified by:
boxed
in interfaceMutableFloatList
-
addAtIndex
public void addAtIndex(int index, float element)
- Specified by:
addAtIndex
in interfaceMutableFloatList
-
addAllAtIndex
public boolean addAllAtIndex(int index, float... source)
- Specified by:
addAllAtIndex
in interfaceMutableFloatList
-
addAllAtIndex
public boolean addAllAtIndex(int index, FloatIterable source)
- Specified by:
addAllAtIndex
in interfaceMutableFloatList
-
removeAtIndex
public float removeAtIndex(int index)
- Specified by:
removeAtIndex
in interfaceMutableFloatList
-
set
public float set(int index, float element)
- Specified by:
set
in interfaceMutableFloatList
-
with
public UnmodifiableFloatList with(float element)
- Specified by:
with
in interfaceMutableFloatCollection
- Specified by:
with
in interfaceMutableFloatList
- Overrides:
with
in classAbstractUnmodifiableFloatCollection
-
without
public UnmodifiableFloatList without(float element)
- Specified by:
without
in interfaceMutableFloatCollection
- Specified by:
without
in interfaceMutableFloatList
- Overrides:
without
in classAbstractUnmodifiableFloatCollection
-
withAll
public UnmodifiableFloatList withAll(FloatIterable elements)
- Specified by:
withAll
in interfaceMutableFloatCollection
- Specified by:
withAll
in interfaceMutableFloatList
- Overrides:
withAll
in classAbstractUnmodifiableFloatCollection
-
withoutAll
public UnmodifiableFloatList withoutAll(FloatIterable elements)
- Specified by:
withoutAll
in interfaceMutableFloatCollection
- Specified by:
withoutAll
in interfaceMutableFloatList
- Overrides:
withoutAll
in classAbstractUnmodifiableFloatCollection
-
select
public MutableFloatList select(FloatPredicate predicate)
- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceFloatList
- Specified by:
select
in interfaceMutableFloatCollection
- Specified by:
select
in interfaceMutableFloatList
- Specified by:
select
in interfaceOrderedFloatIterable
- Specified by:
select
in interfaceReversibleFloatIterable
- Overrides:
select
in classAbstractUnmodifiableFloatCollection
-
reject
public MutableFloatList reject(FloatPredicate predicate)
- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceFloatList
- Specified by:
reject
in interfaceMutableFloatCollection
- Specified by:
reject
in interfaceMutableFloatList
- Specified by:
reject
in interfaceOrderedFloatIterable
- Specified by:
reject
in interfaceReversibleFloatIterable
- Overrides:
reject
in classAbstractUnmodifiableFloatCollection
-
collect
public <V> MutableList<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceFloatList
- Specified by:
collect
in interfaceMutableFloatCollection
- Specified by:
collect
in interfaceMutableFloatList
- Specified by:
collect
in interfaceOrderedFloatIterable
- Specified by:
collect
in interfaceReversibleFloatIterable
- Overrides:
collect
in classAbstractUnmodifiableFloatCollection
-
sortThis
public MutableFloatList sortThis()
- Specified by:
sortThis
in interfaceMutableFloatList
-
shuffleThis
public MutableFloatList shuffleThis()
- Specified by:
shuffleThis
in interfaceMutableFloatList
-
binarySearch
public int binarySearch(float value)
- Specified by:
binarySearch
in interfaceFloatList
-
dotProduct
public double dotProduct(FloatList list)
- Specified by:
dotProduct
in interfaceFloatList
-
equals
public boolean equals(Object otherList)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableFloatList asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatCollection
- Specified by:
asUnmodifiable
in interfaceMutableFloatList
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableFloatCollection
-
asSynchronized
public MutableFloatList asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatCollection
- Specified by:
asSynchronized
in interfaceMutableFloatList
- Overrides:
asSynchronized
in classAbstractUnmodifiableFloatCollection
-
toImmutable
public ImmutableFloatList toImmutable()
- Specified by:
toImmutable
in interfaceFloatList
- Specified by:
toImmutable
in interfaceMutableFloatCollection
- Specified by:
toImmutable
in interfaceMutableFloatList
- Overrides:
toImmutable
in classAbstractUnmodifiableFloatCollection
-
newEmpty
public MutableFloatList newEmpty()
- Specified by:
newEmpty
in interfaceMutableFloatCollection
- Specified by:
newEmpty
in interfaceMutableFloatList
- Since:
- 9.2.
-
reverseThis
public MutableFloatList reverseThis()
- Specified by:
reverseThis
in interfaceMutableFloatList
-
toReversed
public MutableFloatList toReversed()
- Specified by:
toReversed
in interfaceFloatList
- Specified by:
toReversed
in interfaceMutableFloatList
- Specified by:
toReversed
in interfaceReversibleFloatIterable
-
forEachWithIndex
public void forEachWithIndex(FloatIntProcedure procedure)
- Specified by:
forEachWithIndex
in interfaceOrderedFloatIterable
-
asReversed
public LazyFloatIterable asReversed()
- Specified by:
asReversed
in interfaceReversibleFloatIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T,? extends T> function)
- Specified by:
injectIntoWithIndex
in interfaceOrderedFloatIterable
- Specified by:
injectIntoWithIndex
in interfaceReversibleFloatIterable
-
distinct
public MutableFloatList distinct()
- Specified by:
distinct
in interfaceFloatList
- Specified by:
distinct
in interfaceMutableFloatList
- Specified by:
distinct
in interfaceReversibleFloatIterable
- Since:
- 6.0.
-
subList
public MutableFloatList subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceFloatList
- Specified by:
subList
in interfaceMutableFloatList
-
zipFloat
public MutableList<FloatFloatPair> zipFloat(FloatIterable iterable)
- Specified by:
zipFloat
in interfaceFloatList
- Specified by:
zipFloat
in interfaceMutableFloatList
- Since:
- 9.1.
-
zip
public <T> MutableList<FloatObjectPair<T>> zip(Iterable<T> iterable)
- Specified by:
zip
in interfaceFloatList
- Specified by:
zip
in interfaceMutableFloatList
- Since:
- 9.1.
-
selectWithIndex
public MutableFloatList selectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceFloatList
- Specified by:
selectWithIndex
in interfaceMutableFloatList
- Specified by:
selectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
selectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 11.1.
-
selectWithIndex
public <R extends MutableFloatCollection> R selectWithIndex(FloatIntPredicate predicate, R target)
Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndex
in interfaceOrderedFloatIterable
- Since:
- 11.1.
-
rejectWithIndex
public MutableFloatList rejectWithIndex(FloatIntPredicate predicate)
Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceFloatList
- Specified by:
rejectWithIndex
in interfaceMutableFloatList
- Specified by:
rejectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
rejectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 11.1.
-
rejectWithIndex
public <R extends MutableFloatCollection> R rejectWithIndex(FloatIntPredicate predicate, R target)
Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndex
in interfaceOrderedFloatIterable
- Since:
- 11.1.
-
collectWithIndex
public <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.- Specified by:
collectWithIndex
in interfaceFloatList
- Specified by:
collectWithIndex
in interfaceMutableFloatList
- Specified by:
collectWithIndex
in interfaceOrderedFloatIterable
- Specified by:
collectWithIndex
in interfaceReversibleFloatIterable
- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R 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.- Specified by:
collectWithIndex
in interfaceOrderedFloatIterable
- Since:
- 9.1.
-
-