Top Description Fields Constructors Methods
org.eclipse.collections.impl.list.mutable.primitive

public Class UnmodifiableFloatList

extends AbstractUnmodifiableFloatCollection
implements MutableFloatList
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.list.primitive.MutableFloatList, org.eclipse.collections.api.list.primitive.FloatList, org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable, org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable, org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableFloatCollection
Imports
java.util.Collection, org.eclipse.collections.api.FloatIterable, .LazyFloatIterable, org.eclipse.collections.api.block.function.primitive.FloatIntToObjectFunction, .FloatToObjectFunction, .ObjectFloatIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatIntPredicate, .FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure, org.eclipse.collections.api.collection.primitive.MutableFloatCollection, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.tuple.primitive.FloatFloatPair, .FloatObjectPair, org.eclipse.collections.api.stack.primitive.MutableFloatStack, org.eclipse.collections.api.list.primitive.FloatList, .ImmutableFloatList, .MutableFloatList, org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection, org.eclipse.collections.impl.factory.primitive.FloatLists, .FloatStacks, org.eclipse.collections.impl.lazy.primitive.ReverseFloatIterable

This file was automatically generated from template file unmodifiablePrimitiveList.stg.
Since
3.1.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public void
public LazyFloatIterable
public MutableFloatList
public MutableFloatList
public int
public MutableList<Float>
public <V> MutableList<V>
public <V> MutableList<V>
collectWithIndex(FloatIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

public <V, R extends Collection<V>> R
collectWithIndex(FloatIntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.collectWithIndex.

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

public MutableFloatList
public double
public boolean
public void
public float
public float
public float
private MutableFloatList
public int
public int
public <T> T
public int
public MutableFloatList
public MutableFloatList
public MutableFloatList
rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.rejectWithIndex.

Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.

public <R extends MutableFloatCollection> R
rejectWithIndex(FloatIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.rejectWithIndex.

Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.

public float
public MutableFloatList
public MutableFloatList
public MutableFloatList
selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.selectWithIndex.

Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.

public <R extends MutableFloatCollection> R
selectWithIndex(FloatIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.selectWithIndex.

Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.

public float
public MutableFloatList
shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.shuffleThis.

Randomly permutes this list mutating its contents and returns the same list (this).

public MutableFloatList
sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.sortThis.

Sorts this list mutating its contents and returns the same mutable list (this).

public MutableFloatList
public ImmutableFloatList
public MutableFloatList
public MutableFloatStack
toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.toStack.

Converts the collection to a FloatStack.

public UnmodifiableFloatList
public UnmodifiableFloatList
public UnmodifiableFloatList
public UnmodifiableFloatList
public <T> MutableList<FloatObjectPair<T>>
zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.zip.

Returns a MutableList formed from this MutableFloatList and a ListIterable by combining corresponding elements in pairs.

public MutableList<FloatFloatPair>
zipFloat(FloatIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.zipFloat.

Returns a MutableList formed from this MutableFloatList and another FloatList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachfloatIteratorgetFloatCollectioninjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.serialVersionUID.

Constructor Detail

UnmodifiableFloatListback to summary
public UnmodifiableFloatList(MutableFloatList list)

Method Detail

addAllAtIndexback to summary
public boolean addAllAtIndex(int index, float... source)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.addAllAtIndex.

Annotations
@Override
addAllAtIndexback to summary
public boolean addAllAtIndex(int index, FloatIterable source)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.addAllAtIndex.

Annotations
@Override
addAtIndexback to summary
public void addAtIndex(int index, float element)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.addAtIndex.

Annotations
@Override
asReversedback to summary
public LazyFloatIterable asReversed()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.asReversed.

Annotations
@Override
asSynchronizedback to summary
public MutableFloatList asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.asSynchronized.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableFloatList asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.asUnmodifiable.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asUnmodifiable.

Annotations
@Override
binarySearchback to summary
public int binarySearch(float value)

Implements org.eclipse.collections.api.list.primitive.FloatList.binarySearch.

Annotations
@Override
boxedback to summary
public MutableList<Float> boxed()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.boxed.

Annotations
@Override
collectback to summary
public <V> MutableList<V> collect(FloatToObjectFunction<? extends V> function)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.collect.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.collect, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.collect.

Doc from org.eclipse.collections.api.FloatIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
collectWithIndexback to summary
public <V> MutableList<V> collectWithIndex(FloatIntToObjectFunction<? extends V> function)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.collectWithIndex.

Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.

Annotations
@Override
Since
9.1.
collectWithIndexback to summary
public <V, R extends Collection<V>> R collectWithIndex(FloatIntToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.collectWithIndex.

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

Since
9.1.
distinctback to summary
public MutableFloatList distinct()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.distinct.

Annotations
@Override
Since
6.0.
dotProductback to summary
public double dotProduct(FloatList list)

Implements org.eclipse.collections.api.list.primitive.FloatList.dotProduct.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherList)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.list.primitive.FloatList.equals.

Doc from org.eclipse.collections.api.list.primitive.FloatList.equals.

Follows the same general contract as java.util.List#equals(Object).

Annotations
@Override
forEachWithIndexback to summary
public void forEachWithIndex(FloatIntProcedure procedure)

Implements org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.forEachWithIndex.

Annotations
@Override
getback to summary
public float get(int index)

Implements org.eclipse.collections.api.list.primitive.FloatList.get.

Annotations
@Override
getFirstback to summary
public float getFirst()

Implements org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.getFirst.

Annotations
@Override
getLastback to summary
public float getLast()

Implements org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.getLast.

Annotations
@Override
getMutableFloatListback to summary
private MutableFloatList getMutableFloatList()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.list.primitive.FloatList.hashCode.

Doc from org.eclipse.collections.api.list.primitive.FloatList.hashCode.

Follows the same general contract as java.util.List#hashCode().

Annotations
@Override
indexOfback to summary
public int indexOf(float value)

Implements org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.indexOf.

Annotations
@Override
injectIntoWithIndexback to summary
public <T> T injectIntoWithIndex(T injectedValue, ObjectFloatIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable.injectIntoWithIndex.

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(float value)

Implements org.eclipse.collections.api.list.primitive.FloatList.lastIndexOf.

Annotations
@Override
newEmptyback to summary
public MutableFloatList newEmpty()

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.newEmpty, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.newEmpty.

Doc from org.eclipse.collections.api.list.primitive.MutableFloatList.newEmpty.

Creates a new empty mutable version of the same List type.

Since
9.2.
rejectback to summary
public MutableFloatList reject(FloatPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.reject.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.reject, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.reject.

Doc from org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

Annotations
@Override
rejectWithIndexback to summary
public MutableFloatList rejectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.rejectWithIndex.

Returns a new MutableFloatList excluding all elements with corresponding indexes matching the specified predicate.

Since
11.1.
rejectWithIndexback to summary
public <R extends MutableFloatCollection> R rejectWithIndex(FloatIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.rejectWithIndex.

Returns a new MutableFloatCollection excluding all elements with corresponding indexes matching the specified predicate.

Since
11.1.
removeAtIndexback to summary
public float removeAtIndex(int index)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.removeAtIndex.

Annotations
@Override
reverseThisback to summary
public MutableFloatList reverseThis()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.reverseThis.

Annotations
@Override
selectback to summary
public MutableFloatList select(FloatPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.select.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.select, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.select.

Doc from org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

Annotations
@Override
selectWithIndexback to summary
public MutableFloatList selectWithIndex(FloatIntPredicate predicate)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.selectWithIndex.

Returns a new MutableFloatList including all elements with corresponding indexes matching the specified predicate.

Since
11.1.
selectWithIndexback to summary
public <R extends MutableFloatCollection> R selectWithIndex(FloatIntPredicate predicate, R target)

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.selectWithIndex.

Returns a new MutableFloatCollection including all elements with corresponding indexes matching the specified predicate.

Since
11.1.
setback to summary
public float set(int index, float element)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.set.

Annotations
@Override
shuffleThisback to summary
public MutableFloatList shuffleThis()

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.shuffleThis.

Doc from org.eclipse.collections.api.list.primitive.MutableFloatList.shuffleThis.

Randomly permutes this list mutating its contents and returns the same list (this). Uses java.util.Random as the source of randomness.

Annotations
@Override
sortThisback to summary
public MutableFloatList sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.sortThis.

Doc from org.eclipse.collections.api.list.primitive.MutableFloatList.sortThis.

Sorts this list mutating its contents and returns the same mutable list (this).

Annotations
@Override
subListback to summary
public MutableFloatList subList(int fromIndex, int toIndex)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.subList.

Annotations
@Override
toImmutableback to summary
public ImmutableFloatList toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.toImmutable.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.toImmutable, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.toImmutable.

Doc from org.eclipse.collections.api.list.primitive.MutableFloatList.toImmutable.

Returns an immutable copy of this list.

Annotations
@Override
toReversedback to summary
public MutableFloatList toReversed()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.toReversed.

Annotations
@Override
toStackback to summary
public MutableFloatStack toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.toStack.

Doc from org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.toStack.

Converts the collection to a FloatStack.

Annotations
@Override
withback to summary
public UnmodifiableFloatList with(float element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.with.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.with, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.with.

Annotations
@Override
withAllback to summary
public UnmodifiableFloatList withAll(FloatIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.withAll.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.withAll, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withAll.

Annotations
@Override
withoutback to summary
public UnmodifiableFloatList without(float element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.without.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.without, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.without.

Annotations
@Override
withoutAllback to summary
public UnmodifiableFloatList withoutAll(FloatIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection.withoutAll.

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.withoutAll, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withoutAll.

Annotations
@Override
zipback to summary
public <T> MutableList<FloatObjectPair<T>> zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.zip.

Doc from org.eclipse.collections.api.list.primitive.MutableFloatList.zip.

Returns a 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.

Since
9.1.
zipFloatback to summary
public MutableList<FloatFloatPair> zipFloat(FloatIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.zipFloat.

Doc from org.eclipse.collections.api.list.primitive.MutableFloatList.zipFloat.

Returns a MutableList 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.

Since
9.1.