Java 类org.antlr.v4.runtime.misc.ObjectEqualityComparator 实例源码
项目:Scratch-ApuC
文件:LexerATNConfig.java
@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);
}
项目:codebuff
文件:Quad.java
@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);
}
项目:jetbrains
文件:ANTLRLexerState.java
@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);
}
项目:goworks
文件:BaseParserData.java
@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);
}
项目:goworks
文件:BaseParserData.java
@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;
}
项目:intellij-plugin-v4
文件:ANTLRLexerState.java
@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);
}
项目:antlrworks2
文件:BaseParserData.java
@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);
}
项目:antlrworks2
文件:BaseParserData.java
@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;
}
项目:Scratch-ApuC
文件:OrderedATNConfigSet.java
public LexerConfigHashSet() {
super(ObjectEqualityComparator.INSTANCE);
}