A - B - public abstract class CustomFilter<A,B> extends Object implements Filter<A,B>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CustomFilter.MappedTypePairHolder<A,B>
Simple implementation of MappedTypePair that holds the given pair of types.
|
| Constructor and Description |
|---|
CustomFilter()
Constructs a new CustomFilter, invoking
inferTypes() to get the A-type and B-type. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(Property source,
Property destination)
This method will be called at build time to determine if this filter
should be applied to the mapping of the specified properties
|
Type<A> |
getAType() |
Type<B> |
getBType() |
protected MappedTypePair<A,B> |
inferTypes()
Infer A-type and B-type from the generic arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterDestination, filtersDestination, filterSource, filtersSource, shouldMappublic CustomFilter()
inferTypes() to get the A-type and B-type.protected MappedTypePair<A,B> inferTypes()
IllegalStateException - if the types cannot be inferredpublic Type<A> getAType()
getAType in interface MappedTypePair<A,B>public Type<B> getBType()
getBType in interface MappedTypePair<A,B>Copyright © 2016 Glasnost. All rights reserved.