Schnittstelle IMappableContainer<E>
- Typparameter:
E- is the type of the elements aIMappableContainer.
- Alle bekannten Unterschnittstellen:
IArrayList<E>,ICachingContainer<E>,IContainer<E>,ILinkedList<E>,IMatrix<E>
- Alle bekannten Implementierungsklassen:
ArrayList,ArrayView,CachingContainer,Container,ContainerView,ContainerView,GapMatrix,ImmutableList,IterableView,LinkedList,Matrix,MatrixColumn,MatrixRow,MultiContainerView
public interface IMappableContainer<E>
- Version:
- 2023-10-14
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<E2> IContainer<E2> Object[]toArray()byte[]toByteArray(Function<E, Byte> byteGetter) char[]toCharArray(Function<E, Character> charGetter) double[]toDoubleArray(ToDoubleFunction<E> doubleGetter) <E2> IContainer<E2> toFromGroups(Function<E, IContainer<E2>> extractor) int[]toIntArray(ToIntFunction<E> intGetter) long[]toLongArray(ToLongFunction<E> longGetter)
-
Methodendetails
-
to
- Typparameter:
E2- is the type of the elements the given extractor returns.- Parameter:
extractor-- Gibt zurück:
- a new
IMappableContainerwith the elements the given extractor extracts from the elements of the currentIMappableContainer.
-
toArray
Object[] toArray()- Gibt zurück:
- a new array with the elements of the current
IMappableContainer.
-
toByteArray
- Parameter:
byteGetter-- Gibt zurück:
- a new array with the bytes the given byteGetter returns from the
elements of the current
IMappableContainer.
-
toCharArray
- Parameter:
charGetter-- Gibt zurück:
- a new array with the chars the given charGetter returns from the
elements of the current
IMappableContainer.
-
toConcatenatedString
String toConcatenatedString()- Gibt zurück:
- a concatenated
Stringrepresentation of the currentIMappableContainer.
-
toDoubleArray
- Parameter:
doubleGetter-- Gibt zurück:
- a new array with the doubles the given doubleGetter returns from the
elements of the current
IMappableContainer.
-
toFromGroups
- Typparameter:
E2- is the type of the elements of theIMappableContainers the given extractor returns.- Parameter:
extractor-- Gibt zurück:
- a new
IMappableContainerwith the elements of theIMappableContainers the given extractor extracts from the elements of the currentIMappableContainer.
-
toIntArray
- Parameter:
intGetter-- Gibt zurück:
- a new array with the ints the given intGetter returns from the
elements of the current
IMappableContainer.
-
toLongArray
- Parameter:
longGetter-- Gibt zurück:
- a new array with the longs the given longGetter returns from the
elements of the current
IMappableContainer.
-