Class PredictionContext.IdentityEqualityComparator

java.lang.Object
org.antlr.v4.runtime.misc.AbstractEqualityComparator<PredictionContext>
org.antlr.v4.runtime.atn.PredictionContext.IdentityEqualityComparator
All Implemented Interfaces:
EqualityComparator<PredictionContext>
Enclosing class:
PredictionContext

public static final class PredictionContext.IdentityEqualityComparator extends AbstractEqualityComparator<PredictionContext>
  • Field Details

  • Constructor Details

    • IdentityEqualityComparator

      private IdentityEqualityComparator()
  • Method Details

    • hashCode

      public int hashCode(PredictionContext obj)
      Description copied from interface: EqualityComparator
      This method returns a hash code for the specified object.
      Parameters:
      obj - The object.
      Returns:
      The hash code for obj.
    • equals

      public boolean equals(PredictionContext a, PredictionContext b)
      Description copied from interface: EqualityComparator
      This method tests if two objects are equal.
      Parameters:
      a - The first object to compare.
      b - The second object to compare.
      Returns:
      true if a equals b, otherwise false.