Class GFFRecordFilter.FeatureFilter

java.lang.Object
org.biojava.bio.program.gff.GFFRecordFilter.FeatureFilter
All Implemented Interfaces:
GFFRecordFilter
Enclosing interface:
GFFRecordFilter

public static class GFFRecordFilter.FeatureFilter extends Object implements GFFRecordFilter
Implementation of GFFRecordFilter that accepts records based upon the feature field.
Author:
Matthew Pocock
  • Constructor Details

  • Method Details

    • setFeature

      public void setFeature(String feature)
      Set the feature to feature.
      Parameters:
      feature - the feature
    • getFeature

      public String getFeature()
      Retrieve the current feature.
      Returns:
      the feature String
    • accept

      public boolean accept(GFFRecord record)
      Description copied from interface: GFFRecordFilter
      Return whether or not to accept record.
      Specified by:
      accept in interface GFFRecordFilter
      Parameters:
      record - the GFFRecord to filter
      Returns:
      record. getFeature() == this.getFeature()