Class MatchEverything

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

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

    • MatchEverything

      public MatchEverything()
  • Method Details

    • equals

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

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

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