public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getValue()); hashCodeBuilder.append(this.getId()); }
public void toString(ToStringBuilder toStringBuilder) { { List<JAXBElement<? extends EmbeddedAnnotation>> theAnnotation; theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); } { String theValue; theValue = this.getValue(); toStringBuilder.append("value", theValue); } { String theId; theId = this.getId(); toStringBuilder.append("id", theId); } }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Role)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Role that = ((Role) object); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getValue(), that.getValue()); equalsBuilder.append(this.getId(), that.getId()); }
public Role newRole(Role role) { return newRole(autoGenerateId(roleIdPrefix,role.getId()),role.getValue()); }