/** * Test whether this function type equals another function type */ public boolean equals(Object other) { if (other instanceof SpecificFunctionType) { SpecificFunctionType f2 = (SpecificFunctionType) other; if (!resultType.equals(f2.resultType)) { return false; } if (argTypes.length != f2.argTypes.length) { return false; } for (int i = 0; i < argTypes.length; i++) { if (!argTypes[i].equals(f2.argTypes[i])) { return false; } } // Compare the annotations if (!getAnnotationAssertions().equals(f2.getAnnotationAssertions())) { return false; } return true; } return false; }
/** * Test whether this function type equals another function type */ public boolean equals(Object other) { if (other instanceof SpecificFunctionType) { SpecificFunctionType f2 = (SpecificFunctionType) other; if (!resultType.equals(f2.resultType)) { return false; } if (argTypes.length != f2.argTypes.length) { return false; } for (int i = 0; i < argTypes.length; i++) { if (!argTypes[i].equals(f2.argTypes[i])) { return false; } } // Compare the annotations if (!getAnnotationAssertions().equals(f2.getAnnotationAssertions())) { return false; } return true; } return false; }