@Override public boolean equals(ATNConfig other) { if (this == other) { return true; } else if (!(other instanceof LexerATNConfig)) { return false; } LexerATNConfig lexerOther = (LexerATNConfig)other; if (passedThroughNonGreedyDecision != lexerOther.passedThroughNonGreedyDecision) { return false; } if (!ObjectEqualityComparator.INSTANCE.equals(lexerActionExecutor, lexerOther.lexerActionExecutor)) { return false; } return super.equals(other); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (!(obj instanceof Quad<?, ?, ?, ?>)) { return false; } Quad<?, ?, ?, ?> other = (Quad<?, ?, ?, ?>)obj; return ObjectEqualityComparator.INSTANCE.equals(a, other.a) && ObjectEqualityComparator.INSTANCE.equals(b, other.b) && ObjectEqualityComparator.INSTANCE.equals(c, other.c) && ObjectEqualityComparator.INSTANCE.equals(d, other.d); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ANTLRLexerState)) { return false; } ANTLRLexerState other = (ANTLRLexerState)obj; return this.mode == other.mode && ObjectEqualityComparator.INSTANCE.equals(this.modeStack, other.modeStack); }
@Override public boolean equals(Object obj) { if (!(obj instanceof BaseParserData<?>)) { return false; } BaseParserData<?> other = (BaseParserData<?>)obj; return this.definition.equals(other.definition) && this.context.equals(other.context) && this.snapshot.equals(other.snapshot) && ObjectEqualityComparator.INSTANCE.equals(this.data, other.data); }
@Override public int hashCode() { int hash = 5; hash = 67 * hash + this.context.hashCode(); hash = 67 * hash + this.definition.hashCode(); hash = 67 * hash + this.snapshot.hashCode(); hash = 67 * hash + ObjectEqualityComparator.INSTANCE.hashCode(this.data); return hash; }
public LexerConfigHashSet() { super(ObjectEqualityComparator.INSTANCE); }