Class BioSQLFeatureFilter.ByRank

All Implemented Interfaces:
Serializable, FeatureFilter, BioSQLFeatureFilter
Enclosing interface:
BioSQLFeatureFilter

Construct one of these to filter features by rank.
Since:
1.5
Author:
Richard Holland
See Also:
  • Constructor Details

    • ByRank

      public ByRank(int rank)
      Create a Rank filter that filters in all features with rank fields equal to rank.
      Parameters:
      rank - the rank to match type fields against
  • Method Details

    • getRank

      public int getRank()
    • accept

      public boolean accept(Feature f)
      Returns true if the feature has a matching type property.
      Parameters:
      f - the Feature to evaluate
      Returns:
      true if this feature is to be selected in, or false if it is to be ignored
    • asCriterion

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

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

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

      public String toString()
      Overrides:
      toString in class Object