Package org.biojava.bio.seq
Class FilterUtils.DelegatingTransformer
java.lang.Object
org.biojava.bio.seq.FilterUtils.DelegatingTransformer
- All Implemented Interfaces:
FilterUtils.FilterTransformer
- Enclosing class:
FilterUtils
public class FilterUtils.DelegatingTransformer
extends Object
implements FilterUtils.FilterTransformer
An implementation of FilterTransformer that attempts to transform by one transformer,
and if that fails, by another.
- Author:
- Matthew Pocock
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new DelegatingTransformer that will apply t1 and then t2 if t1 fails. -
Method Summary
Modifier and TypeMethodDescriptionTransform a filter, or return null if it can not be transformed.
-
Constructor Details
-
DelegatingTransformer
Create a new DelegatingTransformer that will apply t1 and then t2 if t1 fails.- Parameters:
t1
- the first FilterTransformer to tryt2
- the seccond FilterTransformer to try
-
-
Method Details
-
transform
Description copied from interface:FilterUtils.FilterTransformer
Transform a filter, or return null if it can not be transformed.- Specified by:
transform
in interfaceFilterUtils.FilterTransformer
- Parameters:
ff
- the FeatureFilter to attempt to transform- Returns:
- a transformed filter, or null
-