@Test public void testHashCode() { assertHashCodeContract( new GrantedAuthorityTarget("project", Type.PROJECT), new GrantedAuthorityTarget("project", Type.PROJECT)); }
@Override public int hashCode() { return new HashCodeBuilder() .append(targetId) .append(type) .toHashCode(); }
GrantedAuthorityTarget implements Serializable { @Override public int hashCode() { return new HashCodeBuilder() .append(targetId) .append(type) .toHashCode(); } }
GrantedAuthorityTarget implements Serializable { @Override public int hashCode() { return new HashCodeBuilder() .append(targetId) .append(type) .toHashCode(); } GrantedAuthorityTarget(String targetId, Type type); }
GrantedAuthorityTarget implements Serializable { @Override public int hashCode() { return new HashCodeBuilder() .append(targetId) .append(type) .toHashCode(); } GrantedAuthorityTarget(String targetId, Type type); @Override boolean equals(Object o); @Override int hashCode(); }
GrantedAuthorityTarget implements Serializable { @Override public int hashCode() { return new HashCodeBuilder() .append(targetId) .append(type) .toHashCode(); } GrantedAuthorityTarget(String targetId, Type type); @Override boolean equals(Object o); @Override int hashCode(); static final String APPLICATION_TARGET_ID; static final GrantedAuthorityTarget APPLICATION; }