/** An NFA configuration is equal to another if both have * the same state, the predict the same alternative, and * syntactic/semantic contexts are the same. I don't think * the state|alt|ctx could be the same and have two different * semantic contexts, but might as well define equals to be * everything. */ @Override public boolean equals(Object o) { if ( o==null ) { return false; } NFAConfiguration other = (NFAConfiguration)o; return this.state==other.state && this.alt==other.alt && this.context.equals(other.context)&& this.semanticContext.equals(other.semanticContext); }
/** An NFA configuration is equal to another if both have * the same state, the predict the same alternative, and * syntactic/semantic contexts are the same. I don't think * the state|alt|ctx could be the same and have two different * semantic contexts, but might as well define equals to be * everything. */ public boolean equals(Object o) { if ( o==null ) { return false; } NFAConfiguration other = (NFAConfiguration)o; return this.state==other.state && this.alt==other.alt && this.context.equals(other.context)&& this.semanticContext.equals(other.semanticContext); }
/** An NFA configuration is equal to another if both have * the same state, the predict the same alternative, and * syntactic/semantic contexts are the same. I don't think * the state|alt|ctx could be the same and have two different * semantic contexts, but might as well define equals to be * everything. */ public boolean equals(Object o) { if ( o==null ) { return false; } NFAConfiguration other = (NFAConfiguration)o; return this.state==other.state && this.alt==other.alt && this.context.equals(other.context)&& this.semanticContext.equals(other.semanticContext); }
/** An NFA configuration is equal to another if both have * the same state, the predict the same alternative, and * syntactic/semantic contexts are the same. I don't think * the state|alt|ctx could be the same and have two different * semantic contexts, but might as well define equals to be * everything. */ @Override public boolean equals(Object o) { if ( o==null ) { return false; } NFAConfiguration other = (NFAConfiguration)o; return this.state==other.state && this.alt==other.alt && this.context.equals(other.context)&& this.semanticContext.equals(other.semanticContext); }