Class GFFRecordFilter.SourceFilter

  • All Implemented Interfaces:
    GFFRecordFilter
    Enclosing interface:
    GFFRecordFilter

    public static class GFFRecordFilter.SourceFilter
    extends java.lang.Object
    implements GFFRecordFilter
    Implementation of GFFRecordFilter that accepts records based upon the source field.
    Author:
    Matthew Pocock
    • Constructor Detail

      • SourceFilter

        public SourceFilter()
      • SourceFilter

        public SourceFilter​(java.lang.String source)
    • Method Detail

      • getSource

        public java.lang.String getSource()
        Retrieve the current source.
        Returns:
        the source String
      • setSource

        public void setSource​(java.lang.String source)
        Set the source to source.
        Parameters:
        source - the new source to match
      • 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. getSource() == this.getSource()