Schnittstelle Mappable<E>
- Typparameter:
E- is the type of the elements aMappable.
- Alle bekannten Unterschnittstellen:
IArrayList<E>, IContainer<E>, ILinkedList<E>, IMatrix<E>, ISqlRecord
- Alle bekannten Implementierungsklassen:
AbstractContainer, AbstractExtendedContainer, ArrayContainerView, ArrayList, ContainerView, FilterContainerView, ImmutableList, IntervallContainerView, IterableContainerView, LinkedList, MappingContainerView, Matrix, MatrixColumn, MatrixRow, MultiContainerView, SingleContainer, SqlRecord
public interface Mappable<E>
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibung<T> IContainer<T> <T> IContainer<T> toMultiples(Function<E, IContainer<T>> multipleMapper) <N extends Number>
IContainer<N> <T> IContainer<T> toWithOneBasedIndex(BiFunction<Integer, E, T> mapper)
-
Methodendetails
-
to
- Typparameter:
T- 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:
T- 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:
T- 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.
-