ToStringStyle that does not print out the classname, identity hashcode, content start or field name.
ToStringStyle
This is an inner class rather than using StandardToStringStyle to ensure its immutability.
StandardToStringStyle
85868788899091929394
@Override public int compareTo( @NotNull(message = "other can't be NULL") final RepoCommit other ) { return new CompareToBuilder().append( this.repo().coordinates(), other.repo().coordinates() ).append(this.sha(), other.sha()).build(); }
108109110111112113114115116117
@Override public int compareTo( @NotNull(message = "cont should not be NULL") final Content cont ) { return new CompareToBuilder() .append(this.path(), cont.path()) .append(this.repo().coordinates(), cont.repo().coordinates()) .build(); }
193194195196197198199200201202
@Override public int compareTo( @NotNull(message = "label can't be NULL") final Label label ) { return new CompareToBuilder() .append(this.repo().coordinates(), label.repo().coordinates()) .append(this.obj, label.name()) .build(); }
114115116117118119120121122123
} @Override public int compareTo( @NotNull(message = "other can't be NULL") final Coordinates other ) { return new CompareToBuilder() .append(this.usr, other.user()) .append(this.rpo, other.repo()) .build(); }
147148149150151152153154155156157
*/ @Override public int compareTo(Object object) { ReportableListObject myClass = (ReportableListObject) object; return new CompareToBuilder() .append(this.project, myClass.project) .append(this.amount, myClass.amount) .append(this.city, myClass.city) .append(this.task, myClass.task) .toComparison();
16681669167016711672167316741675
@Override public boolean equals(final Object other) { if (!(other instanceof RowColIndex)) return false; RowColIndex castOther = (RowColIndex) other; return new EqualsBuilder().append(rowKey, castOther.rowKey).append(colIndex, castOther.colIndex) .isEquals(); }
5152535455565758596061
public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (Purchaser.class.isAssignableFrom(obj.getClass())) { final Purchaser other = Purchaser.class.cast(obj); return new EqualsBuilder().append(this.id, other.id) .append(this.name, other.name) .append(this.address, other.address) .append(this.nip, other.nip).isEquals(); } return false;
170171172173174175176177
{ return false; } QueryResult<?> c = (QueryResult<?>) obj; return new EqualsBuilder().append(getNode(), c.getNode()) .append(getAttributeName(), c.getAttributeName()).isEquals(); }
193194195196197198199200201202203
{ return false; } DefaultExpressionEngineSymbols c = (DefaultExpressionEngineSymbols) obj; return new EqualsBuilder() .append(getPropertyDelimiter(), c.getPropertyDelimiter()) .append(getEscapedDelimiter(), c.getEscapedDelimiter()) .append(getIndexStart(), c.getIndexStart()) .append(getIndexEnd(), c.getIndexEnd()) .append(getAttributeStart(), c.getAttributeStart())
188189190191192193194195196197198
{ return false; } FileLocator c = (FileLocator) obj; return new EqualsBuilder().append(getFileName(), c.getFileName()) .append(getBasePath(), c.getBasePath()) .append(sourceURLAsString(), c.sourceURLAsString()) .append(getEncoding(), c.getEncoding()) .append(getFileSystem(), c.getFileSystem()) .append(getLocationStrategy(), c.getLocationStrategy())