Class BioSQLAcceptAllFilter

java.lang.Object
org.biojavax.bio.db.biosql.BioSQLAcceptAllFilter
All Implemented Interfaces:
Serializable, FeatureFilter, BioSQLFeatureFilter

public class BioSQLAcceptAllFilter extends Object implements BioSQLFeatureFilter
The class that accepts all features.

Use the FeatureFilter.all member.

Since:
1.5
Author:
Thomas Down, Matthew Pocock, Richard Holland
See Also:
  • Constructor Details

  • Method Details

    • asCriterion

      public Object asCriterion()
      Description copied from interface: BioSQLFeatureFilter
      This method returns a Hibernate Criterion object that can be used to query the database.
      Specified by:
      asCriterion in interface BioSQLFeatureFilter
      Returns:
      a Hibernate Criterion object representing this filter.
    • criterionAliasMap

      Description copied from interface: BioSQLFeatureFilter
      Returns a map of property names (keys) to aliases (values), if the criterion returned by asCriterion() uses aliases at all. If not, then it must at least return the empty map else you'll get NullPointerExceptions thrown elsewhere.
      Specified by:
      criterionAliasMap in interface BioSQLFeatureFilter
      Returns:
      Map a map of property names to aliases used in the criterion.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • accept

      public boolean accept(Feature f)
      Description copied from interface: FeatureFilter
      This method determines whether a feature is to be accepted.
      Specified by:
      accept in interface FeatureFilter
      Parameters:
      f - the Feature to evaluate
      Returns:
      true if this feature is to be selected in, or false if it is to be ignored
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object