public static final class FeatureFilter.ByType extends java.lang.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.StrandFilterall, leaf, none, top_level| Constructor and Description |
|---|
FeatureFilter.ByType(java.lang.String type)
Create a ByType filter that filters in all features with type fields
equal to type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Feature f)
Returns true if the feature has a matching type property.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getType() |
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.
|
java.lang.String |
toString() |
public FeatureFilter.ByType(java.lang.String type)
type - the String to match type fields againstpublic java.lang.String getType()
public boolean accept(Feature f)
accept in interface FeatureFilterf - the Feature to evaluatepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isProperSubset(FeatureFilter sup)
OptimizableFilterisProperSubset in interface OptimizableFiltersup - the potential super setpublic boolean isDisjoint(FeatureFilter filt)
OptimizableFilterisDisjoint in interface OptimizableFilterpublic java.lang.String toString()
toString in class java.lang.Object