@Test public void testHashCode() { assertEquals(hash1, hash1); assertTrue(!(hash1 == hash4)); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Objects.hashCode(getName()); result = prime * result + Objects.hashCode(this.params); result = prime * result + Objects.hashCode(getReturnType()); return result; }
MethodSignatureImpl extends AbstractTypeMember implements MethodSignature { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Objects.hashCode(getName()); result = prime * result + Objects.hashCode(this.params); result = prime * result + Objects.hashCode(getReturnType()); return result; } }
MethodSignatureImpl extends AbstractTypeMember implements MethodSignature { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Objects.hashCode(getName()); result = prime * result + Objects.hashCode(this.params); result = prime * result + Objects.hashCode(getReturnType()); return result; } @VisibleForTesting  MethodSignatureImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
        final String comment, final AccessModifier accessModifier, final Type returnType,
        final List<Parameter> params, final boolean isFinal, final boolean isAbstract, final boolean isStatic);   MethodSignatureImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
            final String comment, final AccessModifier accessModifier, final Type returnType,
            final List<Parameter> params, final boolean isFinal, final boolean isAbstract, final boolean isStatic,
            final boolean isDefault, final ValueMechanics mechanics); }
MethodSignatureImpl extends AbstractTypeMember implements MethodSignature { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Objects.hashCode(getName()); result = prime * result + Objects.hashCode(this.params); result = prime * result + Objects.hashCode(getReturnType()); return result; } @VisibleForTesting  MethodSignatureImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
        final String comment, final AccessModifier accessModifier, final Type returnType,
        final List<Parameter> params, final boolean isFinal, final boolean isAbstract, final boolean isStatic);   MethodSignatureImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
            final String comment, final AccessModifier accessModifier, final Type returnType,
            final List<Parameter> params, final boolean isFinal, final boolean isAbstract, final boolean isStatic,
            final boolean isDefault, final ValueMechanics mechanics); @Override boolean isAbstract(); @Override boolean isDefault(); @Override List<Parameter> getParameters(); @Override ValueMechanics getMechanics(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); }
MethodSignatureImpl extends AbstractTypeMember implements MethodSignature { @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Objects.hashCode(getName()); result = prime * result + Objects.hashCode(this.params); result = prime * result + Objects.hashCode(getReturnType()); return result; } @VisibleForTesting  MethodSignatureImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
        final String comment, final AccessModifier accessModifier, final Type returnType,
        final List<Parameter> params, final boolean isFinal, final boolean isAbstract, final boolean isStatic);   MethodSignatureImpl(final Type definingType, final String name, final List<AnnotationType> annotations,
            final String comment, final AccessModifier accessModifier, final Type returnType,
            final List<Parameter> params, final boolean isFinal, final boolean isAbstract, final boolean isStatic,
            final boolean isDefault, final ValueMechanics mechanics); @Override boolean isAbstract(); @Override boolean isDefault(); @Override List<Parameter> getParameters(); @Override ValueMechanics getMechanics(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }