I - Input class for transformationP - Product of transformationpublic interface SimpleConditionalTransformer<I,P> extends Transformer<I,P>, Acceptor<I>
isAcceptable(Object) method,
which could be used to query transformer if the input will produce
result.
This interface is simplified version of RuleBasedTransformer - does not
provide decoupling of Acceptance rule from transformer, and should be used only
for simple use-cases.| Modifier and Type | Method and Description |
|---|---|
boolean |
isAcceptable(I input)
Checks if the input is acceptable
for processing by the transformer.
|
transformboolean isAcceptable(I input)
isAcceptable in interface Acceptor<I>Copyright © 2015. All Rights Reserved.