|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.seq.FeatureFilter.StrandFilter
public static final class 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(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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureFilter.StrandFilter(StrandedFeature.Strand strand)
strand - the Strand to match| Method Detail |
|---|
public StrandedFeature.Strand getStrand()
public boolean accept(Feature f)
accept in interface FeatureFilterf - the Feature to check
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic boolean isProperSubset(FeatureFilter sup)
OptimizableFilter
isProperSubset in interface OptimizableFiltersup - 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 | |||||||||