Class RankMatcher

  • All Implemented Interfaces:
    Matcher

    public class RankMatcher
    extends java.lang.Object
    implements Matcher
    Matcher to select BugInstances with a particular rank or higher.
    Author:
    William Pugh
    • Constructor Summary

      Constructors 
      Constructor Description
      RankMatcher​(java.lang.String rankAsString)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean match​(BugInstance bugInstance)
      Determine whether or not the given BugInstance has the feature this Matcher tests for.
      java.lang.String toString()  
      void writeXML​(XMLOutput xmlOutput, boolean disabled)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RankMatcher

        public RankMatcher​(java.lang.String rankAsString)
        Constructor.
        Parameters:
        rankAsString - the rank, as a String
        Throws:
        java.lang.NumberFormatException - if the rank cannot be parsed
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • match

        public boolean match​(BugInstance bugInstance)
        Description copied from interface: Matcher
        Determine whether or not the given BugInstance has the feature this Matcher tests for.
        Specified by:
        match in interface Matcher
        Parameters:
        bugInstance - the BugInstance
        Returns:
        true if the BugInstance matches, false if not
      • writeXML

        public void writeXML​(XMLOutput xmlOutput,
                             boolean disabled)
                      throws java.io.IOException
        Specified by:
        writeXML in interface Matcher
        Throws:
        java.io.IOException