Package ch.nolix.coreapi.container.base
Schnittstelle Mappable<E>
- Typparameter:
E- is the type of the elements aMappable.
- Alle bekannten Unterschnittstellen:
IArrayList<E>,ICachingContainer<E>,IContainer<E>,ILinkedList<E>,IMatrix<E>,ISqlRecord
- Alle bekannten Implementierungsklassen:
AbstractContainer,AbstractExtendedContainer,ArrayContainerView,ArrayList,CachingContainer,ContainerView,FilterContainerView,ImmutableList,IntervallContainerView,IterableContainerView,LinkedList,MappingContainerView,Matrix,MatrixColumn,MatrixRow,MultiContainerView,SqlRecord
public interface Mappable<E>
- Version:
- 2023-10-14
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<E2> IContainer<E2> <E2> IContainer<E2> toMultiples(Function<E, IContainer<E2>> multipleMapper) <N extends Number>
IContainer<N> <E2> IContainer<E2> toWithOneBasedIndex(BiFunction<Integer, E, E2> mapper)
-
Methodendetails
-
to
- Typparameter:
E2- is the type of the elements the given mapper maps from the elements of the currentMappable.- Parameter:
mapper-- Gibt zurück:
- a new
IContainerwith the elements the given mapper maps from the elements of the currentMappable. - Löst aus:
RuntimeException- if the given mapper is null.RuntimeException- if one of the elements of the currentMappableis null.
-
toMultiples
- Typparameter:
E2- is the type of the elements of theIContainers the given multipleMapper maps from the elements of the currentMappable.- Parameter:
multipleMapper-- Gibt zurück:
- a new
IContainerwith the elements of theIContainers the given multipleMapper maps from the elements of the currentMappable. - Löst aus:
RuntimeException- if the given multipleMapper is null.RuntimeException- if one of the elements of the currentMappableis null.
-
toNumbers
- Typparameter:
N- is the type of theNumbers the given numberMapper maps from the elements of the currentMappable.- Parameter:
numberMapper-- Gibt zurück:
- a new
IContainerwith theNumbers the given numberMapper maps from the elements of the currentMappable. Maps null elements to 0.0. - Löst aus:
RuntimeException- if the given numberMapper is null.
-
toStrings
IContainer<String> toStrings()- Gibt zurück:
- a new
IContainerwith theStringrepresentations of the elements of the currentIContainer.
-
toWithOneBasedIndex
- Typparameter:
E2- is the type of the elements the given mapper maps from the elements of the currentMappableand from the one-based index of these elements.- Parameter:
mapper-- Gibt zurück:
- a new
IContainerwith the elements the given mapper maps from the elements of the currentMappableand from the one-based index of these elements. - Löst aus:
RuntimeException- if the given mapper is null.RuntimeException- if one of the elements of the currentMappableis null.
-