List of usage examples for org.apache.commons.lang3.builder EqualsBuilder EqualsBuilder
public EqualsBuilder()
Constructor for EqualsBuilder.
Starts off assuming that equals is true
.
From source file:ca.travelagency.config.City.java
@Override public boolean equals(Object object) { if (this == object) { return true; }/*from w w w . j av a 2 s .c o m*/ if (!(object instanceof City)) { return false; } return new EqualsBuilder().append(getName(), ((City) object).getName()).isEquals(); }
From source file:com.ibasco.agql.core.AbstractMessage.java
protected final EqualsBuilder equalsBuilder(Object rhs) { final EqualsBuilder builder = new EqualsBuilder(); AbstractMessage r = (AbstractMessage) rhs; builder.append(recipient(), r.recipient()); builder.append(sender(), r.sender()); builder.append(defaultIfNull(getMessage(), "").getClass(), defaultIfNull(r.getMessage(), 1).getClass()); return builder; }
From source file:io.cloudslang.lang.entities.MapLoopStatement.java
@Override public boolean equals(Object o) { if (this == o) { return true; }//w w w . j a v a 2s . c o m if (o == null || getClass() != o.getClass()) { return false; } MapLoopStatement that = (MapLoopStatement) o; return new EqualsBuilder().appendSuper(super.equals(o)).append(keyName, that.keyName) .append(valueName, that.valueName).isEquals(); }
From source file:com.qcadoo.mes.orders.dates.ThreeLevelDate.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }//from w w w. ja va2s . com if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } ThreeLevelDate rhs = (ThreeLevelDate) obj; return new EqualsBuilder().append(this.planned, rhs.planned).append(this.corrected, rhs.corrected) .append(this.effective, rhs.effective).isEquals(); }
From source file:de.qaware.chronix.solr.query.analysis.functions.transformation.Divide.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/* w w w. j a v a 2 s . c o m*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } Divide rhs = (Divide) obj; return new EqualsBuilder().append(this.value, rhs.value).isEquals(); }
From source file:com.trenako.web.controllers.form.ResultsOptionsForm.java
@Override public boolean equals(Object obj) { if (obj == this) return true; if (!(obj instanceof ResultsOptionsForm)) return false; ResultsOptionsForm other = (ResultsOptionsForm) obj; return new EqualsBuilder().append(this.size, other.size).append(this.dir, other.dir) .append(this.sort, other.sort).isEquals(); }
From source file:ca.travelagency.config.Product.java
@Override public boolean equals(Object object) { if (this == object) { return true; }/*from w ww . j a v a 2s . c om*/ if (!(object instanceof Product)) { return false; } return new EqualsBuilder().append(getName(), ((Product) object).getName()).isEquals(); }
From source file:br.usp.poli.lta.cereda.wirth2ape.structure.Stack.java
@Override public boolean equals(Object object) { if (object == null) { return false; }//from w ww.j a va 2 s. co m if (getClass() != object.getClass()) { return false; } final Stack<?> reference = (Stack<?>) object; return new EqualsBuilder().append(list, reference.list).isEquals(); }
From source file:ca.travelagency.config.Province.java
@Override public boolean equals(Object object) { if (this == object) { return true; }/* www.ja v a2 s .c o m*/ if (!(object instanceof Province)) { return false; } return new EqualsBuilder().append(getName(), ((Province) object).getName()).isEquals(); }
From source file:ca.travelagency.config.Supplier.java
@Override public boolean equals(Object object) { if (this == object) { return true; }//w w w.j a va 2s . c o m if (!(object instanceof Supplier)) { return false; } return new EqualsBuilder().append(getName(), ((Supplier) object).getName()).isEquals(); }