Class PrimitiveFloatList
- All Implemented Interfaces:
Iterable<Float>, Collection<Float>, List<Float>, RandomAccess, SequencedCollection<Float>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(float val) booleanvoidvoidforEach(FloatConsumer action) get(int index) intindexOf(float val) intvoidreplaceAll(UnaryOperator<Float> operator) floatset(int index, float element) intsize()voidsort()voidsort(Comparator<? super Float> unused) Object[]toArray()<T> T[]toArray(T[] result) Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, subListMethods inherited from class AbstractCollection
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, addFirst, addLast, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, retainAll, reversed, spliterator
-
Constructor Details
-
PrimitiveFloatList
public PrimitiveFloatList(float[] array)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<Float>- Specified by:
sizein interfaceList<Float>- Specified by:
sizein classAbstractCollection<Float>
-
toArray
- Specified by:
toArrayin interfaceCollection<Float>- Specified by:
toArrayin interfaceList<Float>- Overrides:
toArrayin classAbstractCollection<Float>
-
toArray
public <T> T[] toArray(T[] result) - Specified by:
toArrayin interfaceCollection<Float>- Specified by:
toArrayin interfaceList<Float>- Overrides:
toArrayin classAbstractCollection<Float>
-
get
-
set
-
set
public float set(int index, float element) -
indexOf
-
indexOf
public int indexOf(float val) -
contains
- Specified by:
containsin interfaceCollection<Float>- Specified by:
containsin interfaceList<Float>- Overrides:
containsin classAbstractCollection<Float>
-
contains
public boolean contains(float val) -
forEach
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceList<Float>
-
sort
-
sort
public void sort()
-