public static final class FeatureFilter.StrandFilter extends Object implements OptimizableFilter
FeatureFilter.And, FeatureFilter.AnnotationContains, FeatureFilter.ByAncestor, FeatureFilter.ByAnnotation, FeatureFilter.ByAnnotationType, FeatureFilter.ByChild, FeatureFilter.ByClass, FeatureFilter.ByComponentName, FeatureFilter.ByDescendant, FeatureFilter.ByFeature, FeatureFilter.ByPairwiseScore, FeatureFilter.ByParent, FeatureFilter.BySequenceName, FeatureFilter.BySource, FeatureFilter.ByType, FeatureFilter.ContainedByLocation, FeatureFilter.FrameFilter, FeatureFilter.HasAnnotation, FeatureFilter.Not, FeatureFilter.OnlyChildren, FeatureFilter.OnlyDescendants, FeatureFilter.Or, FeatureFilter.OverlapsLocation, FeatureFilter.ShadowContainedByLocation, FeatureFilter.ShadowOverlapsLocation, FeatureFilter.StrandFilter
all, leaf, none, top_level
Constructor and Description |
---|
FeatureFilter.StrandFilter(StrandedFeature.Strand strand)
Build a new filter that matches all features of a given strand.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Feature f)
Accept the Feature if it is an instance of StrandedFeature and matches
the value of getStrand().
|
boolean |
equals(Object o) |
StrandedFeature.Strand |
getStrand()
Retrieve the strand this matches.
|
int |
hashCode() |
boolean |
isDisjoint(FeatureFilter filt)
Returns true if this filter is disjoint from filt - that is, there is no
Feature that is accepted by both filters.
|
boolean |
isProperSubset(FeatureFilter sup)
Returns true if this filter is a proper subset of sup - that is, for every
feature that matches this, it also matches sup.
|
String |
toString() |
public FeatureFilter.StrandFilter(StrandedFeature.Strand strand)
strand
- the Strand to matchpublic StrandedFeature.Strand getStrand()
public boolean accept(Feature f)
accept
in interface FeatureFilter
f
- the Feature to checkpublic boolean isProperSubset(FeatureFilter sup)
OptimizableFilter
isProperSubset
in interface OptimizableFilter
sup
- the potential super setpublic boolean isDisjoint(FeatureFilter filt)
OptimizableFilter
isDisjoint
in interface OptimizableFilter
Copyright © 2014 BioJava. All rights reserved.