Skip navigation links
A B C D E F G H I M N P S T U W 

A

Action - Interface in com.github.erchu.beancp
No argument action.
addConverter(Class<S>, Class<D>, Function<S, D>) - Method in class com.github.erchu.beancp.MapperBuilder
Adds new mapping implemented by converter.
addConverter(Class<S>, Class<D>, BiFunction<Mapper, S, D>) - Method in class com.github.erchu.beancp.MapperBuilder
Adds new mapping implemented by converter.
addConverter(Converter<?, ?>...) - Method in class com.github.erchu.beancp.MapperBuilder
Adds new mapping implemented by converters.
addMap(Class<S>, Class<D>, DeclarativeMapSetup<S, D>) - Method in class com.github.erchu.beancp.MapperBuilder
Adds new mapping defined by map.
addMapAnyByConvention(MapConvention...) - Method in class com.github.erchu.beancp.MapperBuilder
If two data types has no mapping defined by MapperBuilder.addMap(java.lang.Class, java.lang.Class, com.github.erchu.beancp.DeclarativeMapSetup) or any of addConverter methods then this convention will be used.
afterMap(Action) - Method in interface com.github.erchu.beancp.DeclarativeMap
Action to be performed before mappings.
afterMap(Consumer<Mapper>) - Method in interface com.github.erchu.beancp.DeclarativeMap
Action to be performed before mappings.
apply(DeclarativeMap<S, D>, S, D) - Method in interface com.github.erchu.beancp.DeclarativeMapSetup
Defines new map configuration.

B

beforeMap(Action) - Method in interface com.github.erchu.beancp.DeclarativeMap
Action to be performed after mappings.
beforeMap(Consumer<Mapper>) - Method in interface com.github.erchu.beancp.DeclarativeMap
Action to be performed after mappings.
bind(Supplier<T>, Consumer<T>, BindingOption<S, D, T>...) - Method in interface com.github.erchu.beancp.DeclarativeMap
Adds calculated member binding to destination member or members.
bindConstant(T, Consumer<T>, BindingOption<S, D, T>...) - Method in interface com.github.erchu.beancp.DeclarativeMap
Adds constant binding to destination member or members.
Binding - Class in com.github.erchu.beancp
Binding from source member to destination member defined using reflection.
Binding(BindingSide[], BindingSide) - Constructor for class com.github.erchu.beancp.Binding
Creates binding from series of bindings from source (path) to destination member.
Binding(BindingSide, BindingSide) - Constructor for class com.github.erchu.beancp.Binding
Creates Binding from source member to destination member.
BindingOption<S,D,T> - Class in com.github.erchu.beancp
BindingSide - Interface in com.github.erchu.beancp
Source or destination member (for example property) referenced by binding.
BindingWithValueConversion - Class in com.github.erchu.beancp
Binding with additional source value conversion using Converter before it is assigned to destination member.
BindingWithValueConversion(BindingSide[], BindingSide) - Constructor for class com.github.erchu.beancp.BindingWithValueConversion
Creates binding from series of bindings from source to destination member.
BindingWithValueConversion(BindingSide, BindingSide) - Constructor for class com.github.erchu.beancp.BindingWithValueConversion
Creates Binding from source member to destination member.
BindingWithValueMap - Class in com.github.erchu.beancp
Binding with additional source value mapping (before it is set to destination).
BindingWithValueMap(BindingSide[], BindingSide) - Constructor for class com.github.erchu.beancp.BindingWithValueMap
Creates binding from series of bindings from source (path) to destination member.
BindingWithValueMap(BindingSide, BindingSide) - Constructor for class com.github.erchu.beancp.BindingWithValueMap
Creates Binding from source member to destination member.
buildMapper() - Method in class com.github.erchu.beancp.MapperBuilder
Creates map implementation from definitions.

C

CollectionConverters - Class in com.github.erchu.beancp.commons
Converters between from arrays to collections, from collections to arrays and from collections to collections.
com.github.erchu.beancp - package com.github.erchu.beancp
Object to object mapping library.
com.github.erchu.beancp.commons - package com.github.erchu.beancp.commons
Mapping conventions and converters for common use cases.
constructDestinationObjectUsing(Supplier<D>) - Method in interface com.github.erchu.beancp.DeclarativeMap
Operation used to build destination object.
convert(Mapper, S) - Method in class com.github.erchu.beancp.Converter
Performs conversion.
Converter<S,D> - Class in com.github.erchu.beancp
Converter used to convert source to usually immutable new destination object.
Converter(Class<S>, Class<D>, Function<S, D>) - Constructor for class com.github.erchu.beancp.Converter
Creates converter instance not using Mapper reference during execution.
Converter(Class<S>, Class<D>, BiFunction<Mapper, S, D>) - Constructor for class com.github.erchu.beancp.Converter
Creates converter instance using Mapper reference during execution.

D

DeclarativeMap<S,D> - Interface in com.github.erchu.beancp
Defines mapping between source and destination class.
DeclarativeMapSetup<S,D> - Interface in com.github.erchu.beancp
Interface for lambda expression used to define DeclarativeMap.
disableFlattening() - Method in class com.github.erchu.beancp.commons.NameBasedMapConvention
Disables flattening feature as described in NameBasedMapConvention.enableFlattening() method.

E

enableFlattening() - Method in class com.github.erchu.beancp.commons.NameBasedMapConvention
Enables flattening feature.
equals(Object) - Method in class com.github.erchu.beancp.FieldBindingSide
 
equals(Object) - Method in class com.github.erchu.beancp.PropertyBindingSide
 
excludeDestinationMembers(String...) - Method in class com.github.erchu.beancp.commons.NameBasedMapConvention
Sets list of destination members which will be excluded (ignored) by convention.
execute(Mapper, Object, Object) - Method in class com.github.erchu.beancp.Binding
Copies value from source to destination.

F

failIfNotAllDestinationMembersMapped() - Method in class com.github.erchu.beancp.commons.NameBasedMapConvention
Convention will fail during map building (see NameBasedMapConvention.getBindings(com.github.erchu.beancp.MappingInfo, java.lang.Class, java.lang.Class) method) if not all destination properties are mapped.
failIfNotAllSourceMembersMapped() - Method in class com.github.erchu.beancp.commons.NameBasedMapConvention
Convention will fail during map building (see NameBasedMapConvention.getBindings(com.github.erchu.beancp.MappingInfo, java.lang.Class, java.lang.Class) method) if not all source properties are mapped.
FieldBindingSide - Class in com.github.erchu.beancp
Binding to field.
FieldBindingSide(Field) - Constructor for class com.github.erchu.beancp.FieldBindingSide
Creates binding to field from field reference.

G

get() - Static method in class com.github.erchu.beancp.commons.CollectionConverters
Returns collection to collection converters.
get() - Static method in class com.github.erchu.beancp.commons.NameBasedMapConvention
Returns mapping convention with following configuration No destination members excluded Maximum possible number of destination members included Will not fail if not all destination members are mapped Will not fail if not all source members are mapped Flattening feature disabled
get() - Static method in class com.github.erchu.beancp.commons.NumberConverters
Returns number converters.
getArrayToCollection(Class<T>) - Static method in class com.github.erchu.beancp.commons.CollectionConverters
Returns array to collection converters.
getBindings(MappingInfo, Class, Class) - Method in class com.github.erchu.beancp.commons.NameBasedMapConvention
 
getBindings(MappingInfo, Class, Class) - Method in interface com.github.erchu.beancp.MapConvention
Returns list o bindings for specified source and destination classes.
getCollectionToArray(Class<T>) - Static method in class com.github.erchu.beancp.commons.CollectionConverters
Returns collection to array converters.
getDestinationClass() - Method in class com.github.erchu.beancp.Converter
Returns destination class supported by this converter.
getDestinationClass() - Method in interface com.github.erchu.beancp.MappingExecutor
Returns source class.
getDestinationMember() - Method in class com.github.erchu.beancp.Binding
Returns destination member.
getName() - Method in interface com.github.erchu.beancp.BindingSide
Returns name (ex.
getName() - Method in class com.github.erchu.beancp.FieldBindingSide
 
getName() - Method in class com.github.erchu.beancp.PropertyBindingSide
 
getSourceClass() - Method in class com.github.erchu.beancp.Converter
Returns source class supported by this converter.
getSourceClass() - Method in interface com.github.erchu.beancp.MappingExecutor
Returns destination class.
getSourcePath() - Method in class com.github.erchu.beancp.Binding
Returns binding source path (series of bindings from source where n+1 binding returns member of object returned by n-th binding).
getValue(Object) - Method in interface com.github.erchu.beancp.BindingSide
Extracts value from passed object and returns it.
getValue(Object) - Method in class com.github.erchu.beancp.FieldBindingSide
 
getValue(Object) - Method in class com.github.erchu.beancp.PropertyBindingSide
 
getValueClass() - Method in interface com.github.erchu.beancp.BindingSide
Returns value class.
getValueClass() - Method in class com.github.erchu.beancp.FieldBindingSide
 
getValueClass() - Method in class com.github.erchu.beancp.PropertyBindingSide
 

H

hashCode() - Method in class com.github.erchu.beancp.FieldBindingSide
 
hashCode() - Method in class com.github.erchu.beancp.PropertyBindingSide
 

I

includeDestinationMembers(String...) - Method in class com.github.erchu.beancp.commons.NameBasedMapConvention
Sets list of destination members which will be included to matching.
invoke() - Method in interface com.github.erchu.beancp.Action
Performs this operation.
isConverterAvailable(Class, Class) - Method in class com.github.erchu.beancp.MapperBuilder
 
isConverterAvailable(Class, Class) - Method in interface com.github.erchu.beancp.MappingInfo
Returns true if converter is available, false otherwise.
isGetterAvailable() - Method in interface com.github.erchu.beancp.BindingSide
Returns true if getter is available, otherwise false.
isGetterAvailable() - Method in class com.github.erchu.beancp.FieldBindingSide
 
isGetterAvailable() - Method in class com.github.erchu.beancp.PropertyBindingSide
 
isMapAvailable(Class, Class) - Method in class com.github.erchu.beancp.MapperBuilder
 
isMapAvailable(Class, Class) - Method in interface com.github.erchu.beancp.MappingInfo
Returns true if map (or map convention) is available, false otherwise.
isSetterAvailable() - Method in interface com.github.erchu.beancp.BindingSide
Returns true if setter is available, otherwise false.
isSetterAvailable() - Method in class com.github.erchu.beancp.FieldBindingSide
 
isSetterAvailable() - Method in class com.github.erchu.beancp.PropertyBindingSide
 

M

map(S, D) - Method in interface com.github.erchu.beancp.Mapper
Copies data from source object to destination object.
map(S, Class<D>) - Method in interface com.github.erchu.beancp.Mapper
Constructs destination object and copies data from source object to newly created destination object.
MapConvention - Interface in com.github.erchu.beancp
Mapping convention.
mapIfMapperAvailable(S, D) - Method in interface com.github.erchu.beancp.Mapper
Copies data from source object to destination object.
mapIfMapperAvailable(S, Class<D>) - Method in interface com.github.erchu.beancp.Mapper
Constructs destination object and copies data from source object to newly created destination object.
mapInner(Supplier<SI>, Consumer<DI>, Supplier<DI>, Class<DI>, BindingOption<S, D, DI>...) - Method in interface com.github.erchu.beancp.DeclarativeMap
Adds inner object mapping.
mapInner(Supplier<SI>, Consumer<DI>, Class<DI>, BindingOption<S, D, DI>...) - Method in interface com.github.erchu.beancp.DeclarativeMap
Adds inner object mapping.
Mapper - Interface in com.github.erchu.beancp
Object to object mapper.
MapperBuilder - Class in com.github.erchu.beancp
Builds mapper implementation.
MapperBuilder() - Constructor for class com.github.erchu.beancp.MapperBuilder
 
MapperConfigurationException - Exception in com.github.erchu.beancp
Indicates error in mappings configuration.
MapperConfigurationException() - Constructor for exception com.github.erchu.beancp.MapperConfigurationException
Creates a new instance of MapDefinitionException without detail message.
MapperConfigurationException(String) - Constructor for exception com.github.erchu.beancp.MapperConfigurationException
Constructs an instance of MapDefinitionException with the specified detail message.
MapperConfigurationException(Throwable) - Constructor for exception com.github.erchu.beancp.MapperConfigurationException
Constructs an instance of MapDefinitionException with the specified inner exception.
MapperConfigurationException(String, Throwable) - Constructor for exception com.github.erchu.beancp.MapperConfigurationException
Constructs an instance of MapDefinitionException with the specified detail message and inner exception.
MappingException - Exception in com.github.erchu.beancp
Indicates error during mapping.
MappingException() - Constructor for exception com.github.erchu.beancp.MappingException
Creates a new instance of MappingException without detail message.
MappingException(String) - Constructor for exception com.github.erchu.beancp.MappingException
Constructs an instance of MappingException with the specified detail message.
MappingException(Throwable) - Constructor for exception com.github.erchu.beancp.MappingException
Constructs an instance of MappingException with the specified inner exception.
MappingException(String, Throwable) - Constructor for exception com.github.erchu.beancp.MappingException
Constructs an instance of MappingException with the specified detail message and inner exception.
MappingExecutor<S,D> - Interface in com.github.erchu.beancp
Mapping executor (converter or map) common methods.
MappingInfo - Interface in com.github.erchu.beancp
Returns information of configured mappings.
mapWhen(Supplier<Boolean>) - Static method in class com.github.erchu.beancp.BindingOption
Property mapping will be performed when condition lambda will return true.

N

NameBasedMapConvention - Class in com.github.erchu.beancp.commons
Convention matches fields by name.
NameBasedMapConvention() - Constructor for class com.github.erchu.beancp.commons.NameBasedMapConvention
Constructs instance.
NumberConverters - Class in com.github.erchu.beancp.commons
Conversions between primitive number types and its wrappers: byte short int long float double java.lang.Byte java.lang.Short java.lang.Integer java.lang.Long java.lang.Float java.lang.Double

P

PropertyBindingSide - Class in com.github.erchu.beancp
Binding to property.
PropertyBindingSide(PropertyDescriptor) - Constructor for class com.github.erchu.beancp.PropertyBindingSide
Creates binding to property from property information.

S

setValue(Object, Object) - Method in interface com.github.erchu.beancp.BindingSide
Sets value for passed object.
setValue(Object, Object) - Method in class com.github.erchu.beancp.FieldBindingSide
 
setValue(Object, Object) - Method in class com.github.erchu.beancp.PropertyBindingSide
 
setValueAtDestination(Mapper, Object, Object) - Method in class com.github.erchu.beancp.Binding
Sets value at destination.
setValueAtDestination(Mapper, Object, Object) - Method in class com.github.erchu.beancp.BindingWithValueConversion
Sets value at destination.
setValueAtDestination(Mapper, Object, Object) - Method in class com.github.erchu.beancp.BindingWithValueMap
Sets value at destination.

T

toString() - Method in class com.github.erchu.beancp.FieldBindingSide
 
toString() - Method in class com.github.erchu.beancp.PropertyBindingSide
 

U

useConvention(MapConvention) - Method in interface com.github.erchu.beancp.DeclarativeMap
Adds mappings using convention.

W

withNullSubstitution(T) - Static method in class com.github.erchu.beancp.BindingOption
If from source value getter will return null then value will be substituted with result from nullSubstitution lambda.
A B C D E F G H I M N P S T U W 
Skip navigation links

Copyright © 2014. All rights reserved.