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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllAtIndex(int index, float... source) booleanaddAllAtIndex(int index, FloatIterable source) voidaddAtIndex(int index, float element) intbinarySearch(float value) 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.distinct()doubledotProduct(FloatList list) booleanvoidforEachWithIndex(FloatIntProcedure procedure) floatget(int index) floatgetFirst()floatgetLast()inthashCode()intindexOf(float value) <T> TinjectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T, ? extends T> function) intlastIndexOf(float value) newEmpty()reject(FloatPredicate predicate) 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.floatremoveAtIndex(int index) select(FloatPredicate predicate) 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.floatset(int index, float element) sortThis()subList(int fromIndex, int toIndex) toStack()with(float element) withAll(FloatIterable elements) without(float element) withoutAll(FloatIterable elements) <T> MutableList<FloatObjectPair<T>>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, toStringMethods 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.list.primitive.FloatList
forEachInBothMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.list.primitive.MutableFloatList
shuffleThis, sortThis, sortThisBy, sortThisBy, swap, tapMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
UnmodifiableFloatList
-
-
Method Details
-
get
public float get(int index) -
getFirst
public float getFirst()- Specified by:
getFirstin interfaceOrderedFloatIterable
-
getLast
public float getLast()- Specified by:
getLastin interfaceReversibleFloatIterable
-
indexOf
public int indexOf(float value) - Specified by:
indexOfin interfaceOrderedFloatIterable
-
lastIndexOf
public int lastIndexOf(float value) - Specified by:
lastIndexOfin interfaceFloatList
-
boxed
- Specified by:
boxedin interfaceMutableFloatList
-
addAtIndex
public void addAtIndex(int index, float element) - Specified by:
addAtIndexin interfaceMutableFloatList
-
addAllAtIndex
public boolean addAllAtIndex(int index, float... source) - Specified by:
addAllAtIndexin interfaceMutableFloatList
-
addAllAtIndex
- Specified by:
addAllAtIndexin interfaceMutableFloatList
-
removeAtIndex
public float removeAtIndex(int index) - Specified by:
removeAtIndexin interfaceMutableFloatList
-
set
public float set(int index, float element) - Specified by:
setin interfaceMutableFloatList
-
with
- Specified by:
within interfaceMutableFloatCollection- Specified by:
within interfaceMutableFloatList- Overrides:
within classAbstractUnmodifiableFloatCollection
-
without
- Specified by:
withoutin interfaceMutableFloatCollection- Specified by:
withoutin interfaceMutableFloatList- Overrides:
withoutin classAbstractUnmodifiableFloatCollection
-
withAll
- Specified by:
withAllin interfaceMutableFloatCollection- Specified by:
withAllin interfaceMutableFloatList- Overrides:
withAllin classAbstractUnmodifiableFloatCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableFloatCollection- Specified by:
withoutAllin interfaceMutableFloatList- Overrides:
withoutAllin classAbstractUnmodifiableFloatCollection
-
select
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatList- Specified by:
selectin interfaceMutableFloatCollection- Specified by:
selectin interfaceMutableFloatList- Specified by:
selectin interfaceOrderedFloatIterable- Specified by:
selectin interfaceReversibleFloatIterable- Overrides:
selectin classAbstractUnmodifiableFloatCollection
-
reject
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatList- Specified by:
rejectin interfaceMutableFloatCollection- Specified by:
rejectin interfaceMutableFloatList- Specified by:
rejectin interfaceOrderedFloatIterable- Specified by:
rejectin interfaceReversibleFloatIterable- Overrides:
rejectin classAbstractUnmodifiableFloatCollection
-
collect
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatList- Specified by:
collectin interfaceMutableFloatCollection- Specified by:
collectin interfaceMutableFloatList- Specified by:
collectin interfaceOrderedFloatIterable- Specified by:
collectin interfaceReversibleFloatIterable- Overrides:
collectin classAbstractUnmodifiableFloatCollection
-
sortThis
- Specified by:
sortThisin interfaceMutableFloatList
-
shuffleThis
- Specified by:
shuffleThisin interfaceMutableFloatList
-
binarySearch
public int binarySearch(float value) - Specified by:
binarySearchin interfaceFloatList
-
dotProduct
- Specified by:
dotProductin interfaceFloatList
-
equals
-
hashCode
public int hashCode() -
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatCollection- Specified by:
asUnmodifiablein interfaceMutableFloatList- Overrides:
asUnmodifiablein classAbstractUnmodifiableFloatCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatCollection- Specified by:
asSynchronizedin interfaceMutableFloatList- Overrides:
asSynchronizedin classAbstractUnmodifiableFloatCollection
-
toImmutable
- Specified by:
toImmutablein interfaceFloatList- Specified by:
toImmutablein interfaceMutableFloatCollection- Specified by:
toImmutablein interfaceMutableFloatList- Overrides:
toImmutablein classAbstractUnmodifiableFloatCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableFloatCollection- Specified by:
newEmptyin interfaceMutableFloatList- Since:
- 9.2.
-
reverseThis
- Specified by:
reverseThisin interfaceMutableFloatList
-
toReversed
- Specified by:
toReversedin interfaceFloatList- Specified by:
toReversedin interfaceMutableFloatList- Specified by:
toReversedin interfaceReversibleFloatIterable
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceOrderedFloatIterable
-
asReversed
- Specified by:
asReversedin interfaceReversibleFloatIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoWithIndexin interfaceOrderedFloatIterable- Specified by:
injectIntoWithIndexin interfaceReversibleFloatIterable
-
distinct
- Specified by:
distinctin interfaceFloatList- Specified by:
distinctin interfaceMutableFloatList- Specified by:
distinctin interfaceReversibleFloatIterable- Since:
- 6.0.
-
subList
- Specified by:
subListin interfaceFloatList- Specified by:
subListin interfaceMutableFloatList
-
zipFloat
- Specified by:
zipFloatin interfaceFloatList- Specified by:
zipFloatin interfaceMutableFloatList- Since:
- 9.1.
-
zip
- Specified by:
zipin interfaceFloatList- Specified by:
zipin interfaceMutableFloatList- Since:
- 9.1.
-
selectWithIndex
Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceFloatList- Specified by:
selectWithIndexin interfaceMutableFloatList- Specified by:
selectWithIndexin interfaceOrderedFloatIterable- Specified by:
selectWithIndexin interfaceReversibleFloatIterable- Since:
- 11.1.
-
selectWithIndex
Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedFloatIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceFloatList- Specified by:
rejectWithIndexin interfaceMutableFloatList- Specified by:
rejectWithIndexin interfaceOrderedFloatIterable- Specified by:
rejectWithIndexin interfaceReversibleFloatIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedFloatIterable- Since:
- 11.1.
-
collectWithIndex
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceFloatList- Specified by:
collectWithIndexin interfaceMutableFloatList- Specified by:
collectWithIndexin interfaceOrderedFloatIterable- Specified by:
collectWithIndexin 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:
collectWithIndexin interfaceOrderedFloatIterable- Since:
- 9.1.
-
toStack
- Specified by:
toStackin interfaceOrderedFloatIterable
-