public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof ReturnStatement)) { return false; } ReturnStatement other = (ReturnStatement) obj; return super.equals(other); }
public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof ReturnStatement)) { return false; } ReturnStatement other = (ReturnStatement) obj; return super.equals(other); }
public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(!(obj instanceof ReturnStatement)) { return false; } ReturnStatement other = (ReturnStatement) obj; return super.equals(other); }
/** * Compare two DeclareStatements for equality. They will only evaluate to equal if * they are IDENTICAL: variable and the its type are equal. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(obj == null || !(obj instanceof DeclareStatement) || !super.equals(obj)) { return false; } DeclareStatement other = (DeclareStatement) obj; return EquivalenceUtil.areEqual(getVariableType(), other.getVariableType()); }
/** * Compare two DeclareStatements for equality. They will only evaluate to equal if * they are IDENTICAL: variable and the its type are equal. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(obj == null || !(obj instanceof DeclareStatement) || !super.equals(obj)) { return false; } DeclareStatement other = (DeclareStatement) obj; return EquivalenceUtil.areEqual(getVariableType(), other.getVariableType()); }
/** * Compare two DeclareStatements for equality. They will only evaluate to equal if * they are IDENTICAL: variable and the its type are equal. * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { // Quick same object test if(this == obj) { return true; } // Quick fail tests if(obj == null || !(obj instanceof DeclareStatement) || !super.equals(obj)) { return false; } DeclareStatement other = (DeclareStatement) obj; return EquivalenceUtil.areEqual(getVariableType(), other.getVariableType()); }