@Override public String toString() { final ToStringBuilder builder = new ToStringBuilder(this); builder.append("identifier", getId()); builder.append("valid", valid); builder.append("aspectName", aspectName); builder.append("destinationType", destination); builder.append("governor", governorPhysicalTypeMetadata.getId()); builder.append("itdTypeDetails", itdTypeDetails); return builder.toString(); } }
/** * Returns the `hashCode` method to be generated * * @return `null` if no generation is required */ private MethodMetadata getHashCodeMethod() { MethodMetadata method = getGovernorMethod(HASH_CODE_METHOD_NAME); if (method != null) { return method; } return generateHashCodeMethod(getId(), annotationValues, locatedFields, builder.getImportRegistrationResolver()).build(); }
/** * Returns the `equals` method to be generated * * @return `null` if no generation is required */ private MethodMetadata getEqualsMethod() { MethodMetadata method = getGovernorMethod(EQUALS_METHOD_NAME, OBJECT); if (method != null) { return method; } return generateEqualsMethod(getId(), destination, annotationValues, identifierField == null ? null : getAccessorMethod(identifierField).getMethodName(), locatedFields, builder).build(); }
@Override public String toString() { final ToStringBuilder builder = new ToStringBuilder(this); builder.append("identifier", getId()); builder.append("valid", valid); builder.append("aspectName", aspectName); builder.append("destinationType", destination); builder.append("governor", governorPhysicalTypeMetadata.getId()); builder.append("itdTypeDetails", itdTypeDetails); return builder.toString(); } }
/** * Returns the `hashCode` method to be generated * * @return `null` if no generation is required */ private MethodMetadata getHashCodeMethod() { MethodMetadata method = getGovernorMethod(HASH_CODE_METHOD_NAME); if (method != null) { return method; } return generateHashCodeMethod(getId(), annotationValues, locatedFields, builder.getImportRegistrationResolver()).build(); }
/** * Returns the `equals` method to be generated * * @return `null` if no generation is required */ private MethodMetadata getEqualsMethod() { MethodMetadata method = getGovernorMethod(EQUALS_METHOD_NAME, OBJECT); if (method != null) { return method; } return generateEqualsMethod(getId(), destination, annotationValues, identifierField == null ? null : getAccessorMethod(identifierField).getMethodName(), locatedFields, builder).build(); }