Class MatchNothing

java.lang.Object
org.soliscode.test.util.MatchNothing
All Implemented Interfaces:
Comparable<MatchNothing>

public class MatchNothing extends Object implements Comparable<MatchNothing>
An instance of this class will not compare equal to any other object.
Since:
1.0.0
Author:
evanbergstrom
  • Constructor Details

    • MatchNothing

      public MatchNothing()
  • Method Details

    • equals

      public boolean equals(Object obj)
      Always returns false.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare for equality (not used).
      Returns:
      The value false.
    • hashCode

      public int hashCode()
      Always returns 1.
      Overrides:
      hashCode in class Object
      Returns:
      The value 1.
    • compareTo

      public int compareTo(@NotNull @NotNull MatchNothing obj)
      Always returns 1.
      Specified by:
      compareTo in interface Comparable<MatchNothing>
      Parameters:
      obj - The object to compare (not used).
      Returns:
      The value 1.