|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.seq.FeatureFilter.StrandFilter
Accept features with a given strandedness.
Nested Class Summary |
Field Summary |
Fields inherited from interface org.biojava.bio.seq.FeatureFilter |
all, leaf, none, top_level |
Constructor Summary | |
FeatureFilter.StrandFilter(StrandedFeature.Strand strand)
Build a new filter that matches all features of a given strand. |
Method Summary | |
boolean |
accept(Feature f)
Accept the Feature if it is an instance of StrandedFeature and matches the value of getStrand(). |
boolean |
equals(java.lang.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. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FeatureFilter.StrandFilter(StrandedFeature.Strand strand)
strand
- the Strand to matchMethod Detail |
public StrandedFeature.Strand getStrand()
public boolean accept(Feature f)
accept
in interface FeatureFilter
f
- the Feature to check
public boolean equals(java.lang.Object o)
public int hashCode()
public boolean isProperSubset(FeatureFilter sup)
OptimizableFilter
isProperSubset
in interface OptimizableFilter
sup
- the potential super set
public boolean isDisjoint(FeatureFilter filt)
OptimizableFilter
isDisjoint
in interface OptimizableFilter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |