Schnittstelle ArrayMappable<E>
- Typparameter:
E
- is the type of the elements aArrayMappable
.
- Alle bekannten Unterschnittstellen:
IArrayList<E>
,ICachingContainer<E>
,IContainer<E>
,ILinkedList<E>
,IMatrix<E>
,ISqlRecord
- Alle bekannten Implementierungsklassen:
ArrayList
,ArrayView
,CachingContainer
,Container
,ContainerView
,ContainerView
,FilterContainerView
,ImmutableList
,IterableView
,LinkedList
,Matrix
,MatrixColumn
,MatrixRow
,MultiContainerView
,SqlRecord
public interface ArrayMappable<E>
- Version:
- 2024-11-12
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungObject[]
toArray()
byte[]
toByteArray
(Function<E, Byte> byteMapper) char[]
toCharArray
(Function<E, Character> charMapper) double[]
toDoubleArray
(ToDoubleFunction<E> doubleMapper) int[]
toIntArray
(ToIntFunction<E> intMapper) long[]
toLongArray
(ToLongFunction<E> longMapper) String[]
-
Methodendetails
-
toArray
Object[] toArray()- Gibt zurück:
- a new array with the elements of the current
ArrayMappable
.
-
toByteArray
- Parameter:
byteMapper
-- Gibt zurück:
- a new array with the bytes the given byteMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to 0. - Löst aus:
RuntimeException
- if the given byteMapper is null.
-
toCharArray
- Parameter:
charMapper
-- Gibt zurück:
- a new array with the chars the given charMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to a space. - Löst aus:
RuntimeException
- if the given charMapper is null.
-
toDoubleArray
- Parameter:
doubleMapper
-- Gibt zurück:
- a new array with the doubles the given doubleMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to 0.0. - Löst aus:
RuntimeException
- if the given doubleMapper is null.
-
toIntArray
- Parameter:
intMapper
-- Gibt zurück:
- a new array with the ints the given intMapper maps from the elements
of the current
ArrayMappable
. Maps null elements to 0. Maps null elements to 0. - Löst aus:
RuntimeException
- if the given intMapper is null.
-
toLongArray
- Parameter:
longMapper
-- Gibt zurück:
- a new array with the longs the given longMapper maps from the
elements of the current
ArrayMappable
. Maps null elements to 0. - Löst aus:
RuntimeException
- if the given longMapper is null.
-
toStringArray
String[] toStringArray()- Gibt zurück:
- a new array with the
String
representations of the elements of the currentArrayMappable
.
-