Index
All Classes and Interfaces|All Packages
A
- andThen(FromMapper<? extends C, ? super A>) - Method in interface com.helixframework.mapper.FromMapper
-
Chains this mapper with the next reverse mapper.
- andThen(ToMapper<? super B, ? extends C>) - Method in interface com.helixframework.mapper.ToMapper
-
Chains this mapper with the next mapper.
- apply(I, MappingContext) - Method in interface com.helixframework.mapper.MapperDecorator.MapperOperation
-
Executes the mapping operation.
- asMap() - Method in class com.helixframework.mapper.MappingContext
-
Returns the context as an unmodifiable map.
B
- build() - Method in class com.helixframework.mapper.MappingContext.Builder
-
Builds an immutable mapping context.
- builder() - Static method in class com.helixframework.mapper.MappingContext
-
Creates a fluent builder for a new mapping context.
C
- com.helixframework.mapper - package com.helixframework.mapper
- combine(ToMapper<A, B>, FromMapper<A, B>) - Static method in class com.helixframework.mapper.Mappers
-
Creates a bidirectional mapper from one-way mapper implementations.
- compose(Mapper<A, B>, Mapper<B, C>) - Static method in class com.helixframework.mapper.Mappers
-
Composes two bidirectional mappers.
- contains(String) - Method in class com.helixframework.mapper.MappingContext
-
Returns whether the context contains the given key.
D
- decorate(Mapper<A, B>, MapperDecorator<A, B>) - Static method in class com.helixframework.mapper.Mappers
-
Wraps a mapper with a named decorator.
- decorateFrom(B, MappingContext, MapperDecorator.MapperOperation<B, A>) - Method in interface com.helixframework.mapper.MapperDecorator
-
Decorates a reverse mapping operation.
- decorateTo(A, MappingContext, MapperDecorator.MapperOperation<A, B>) - Method in interface com.helixframework.mapper.MapperDecorator
-
Decorates a forward mapping operation.
E
- empty() - Static method in class com.helixframework.mapper.MappingContext
-
Returns an empty mapping context.
- equals(Object) - Method in class com.helixframework.mapper.MappingContext
F
- from(B) - Method in interface com.helixframework.mapper.FromMapper
-
Maps a value of type
Bto typeA. - from(B) - Method in class com.helixframework.mapper.MapperAdapter
- from(B, MappingContext) - Method in interface com.helixframework.mapper.FromMapper
-
Maps a value of type
Bto typeAusing the supplied context. - from(B, MappingContext) - Method in class com.helixframework.mapper.MapperAdapter
- from(BiFunction<B, MappingContext, A>) - Static method in class com.helixframework.mapper.Mappers
-
Creates a reverse one-way mapper from a mapping function.
- fromAll(Iterable<? extends B>) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values in the provided iterable to a list.
- fromAll(Iterable<? extends B>, MappingContext) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values in the provided iterable to a list using the supplied context.
- fromAllPreservingType(Collection<? extends B>) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values while preserving list/set semantics when possible.
- fromAllPreservingType(Collection<? extends B>, MappingContext) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values while preserving list/set semantics when possible.
- fromCollection(Iterable<? extends B>, Supplier<C>) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values in the provided iterable into a collection supplied by the caller.
- fromCollection(Iterable<? extends B>, Supplier<C>, MappingContext) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values in the provided iterable into a collection supplied by the caller.
- FromMapper<A,
B> - Interface in com.helixframework.mapper -
One-way reverse mapper from
BtoA. - fromSet(Iterable<? extends B>) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values in the provided iterable to a set.
- fromSet(Iterable<? extends B>, MappingContext) - Method in interface com.helixframework.mapper.FromMapper
-
Maps all values in the provided iterable to a set using the supplied context.
- fromStream(Iterable<? extends B>) - Method in interface com.helixframework.mapper.FromMapper
-
Maps the provided iterable to a stream.
- fromStream(Iterable<? extends B>, MappingContext) - Method in interface com.helixframework.mapper.FromMapper
-
Maps the provided iterable to a stream using the supplied context.
- fromStream(Stream<? extends B>, MappingContext) - Method in interface com.helixframework.mapper.FromMapper
-
Maps the provided stream using the supplied context.
G
- get(String) - Method in class com.helixframework.mapper.MappingContext
-
Retrieves the raw value for the given key.
- get(String, Class<T>) - Method in class com.helixframework.mapper.MappingContext
-
Retrieves the typed value for the given key.
- getOrDefault(String, Class<T>, T) - Method in class com.helixframework.mapper.MappingContext
-
Retrieves a typed value or returns the supplied default.
- getOrDefault(String, T) - Method in class com.helixframework.mapper.MappingContext
-
Retrieves a typed value or returns the supplied default.
H
- hashCode() - Method in class com.helixframework.mapper.MappingContext
I
- isEmpty() - Method in class com.helixframework.mapper.MappingContext
-
Returns whether the context contains no values.
M
- Mapper<A,
B> - Interface in com.helixframework.mapper -
Maps values between two types.
- MapperAdapter<A,
B> - Class in com.helixframework.mapper -
Convenience base class for context-aware mappers.
- MapperAdapter() - Constructor for class com.helixframework.mapper.MapperAdapter
- MapperDecorator<A,
B> - Interface in com.helixframework.mapper -
Decorates mapper operations with cross-cutting behavior.
- MapperDecorator.MapperOperation<I,
O> - Interface in com.helixframework.mapper -
Underlying mapper operation.
- Mappers - Class in com.helixframework.mapper
-
Factory and composition helpers for mapper types.
- MappingContext - Class in com.helixframework.mapper
-
Immutable mapping context passed to mapper operations.
- MappingContext.Builder - Class in com.helixframework.mapper
-
Fluent builder for immutable mapping contexts.
O
- of(BiFunction<A, MappingContext, B>, BiFunction<B, MappingContext, A>) - Static method in class com.helixframework.mapper.Mappers
-
Creates a bidirectional mapper from two mapping functions.
- of(Map<String, ?>) - Static method in class com.helixframework.mapper.MappingContext
-
Creates a mapping context from the provided values.
P
- put(String, Object) - Method in class com.helixframework.mapper.MappingContext.Builder
-
Adds a key and value to the mapping context.
- putAll(Map<String, ?>) - Method in class com.helixframework.mapper.MappingContext.Builder
-
Adds all provided values to the mapping context.
T
- to(A) - Method in class com.helixframework.mapper.MapperAdapter
- to(A) - Method in interface com.helixframework.mapper.ToMapper
-
Maps a value of type
Ato typeB. - to(A, MappingContext) - Method in class com.helixframework.mapper.MapperAdapter
- to(A, MappingContext) - Method in interface com.helixframework.mapper.ToMapper
-
Maps a value of type
Ato typeBusing the supplied context. - to(BiFunction<A, MappingContext, B>) - Static method in class com.helixframework.mapper.Mappers
-
Creates a one-way mapper from a mapping function.
- toAll(Iterable<? extends A>) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable to a list.
- toAll(Iterable<? extends A>, MappingContext) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable to a list using the supplied context.
- toAllPreservingType(Collection<? extends A>) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable while preserving list/set semantics when possible.
- toAllPreservingType(Collection<? extends A>, MappingContext) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable while preserving list/set semantics when possible.
- toCollection(Iterable<? extends A>, Supplier<C>) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable into a collection supplied by the caller.
- toCollection(Iterable<? extends A>, Supplier<C>, MappingContext) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable into a collection supplied by the caller.
- ToMapper<A,
B> - Interface in com.helixframework.mapper -
One-way mapper from
AtoB. - toSet(Iterable<? extends A>) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable to a set.
- toSet(Iterable<? extends A>, MappingContext) - Method in interface com.helixframework.mapper.ToMapper
-
Maps all values in the provided iterable to a set using the supplied context.
- toStream(Iterable<? extends A>) - Method in interface com.helixframework.mapper.ToMapper
-
Maps the provided iterable to a stream.
- toStream(Iterable<? extends A>, MappingContext) - Method in interface com.helixframework.mapper.ToMapper
-
Maps the provided iterable to a stream using the supplied context.
- toStream(Stream<? extends A>, MappingContext) - Method in interface com.helixframework.mapper.ToMapper
-
Maps the provided stream using the supplied context.
- toString() - Method in class com.helixframework.mapper.MappingContext
W
- wrap(Mapper<A, B>, UnaryOperator<MappingContext>) - Static method in class com.helixframework.mapper.Mappers
-
Wraps a mapper with a context decorator.
All Classes and Interfaces|All Packages