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:net.sf.jabb.util.bean.TripleValueBean.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w ww.ja v a2s .c om if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } TripleValueBean<?, ?, ?> rhs = (TripleValueBean<?, ?, ?>) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(value1, rhs.value1) .append(value2, rhs.value2).append(value3, rhs.value3).isEquals(); }
From source file:iDynoOptimizer.MOEAFramework26.src.org.moeaframework.util.grammar.Symbol.java
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if ((obj == null) || (obj.getClass() != getClass())) { return false; } else {/*from w w w.j av a 2s. c om*/ Symbol rhs = (Symbol) obj; return new EqualsBuilder().append(isTerminal, rhs.isTerminal).append(value, rhs.value).isEquals(); } }
From source file:net.sf.dynamicreports.design.base.style.DRDesignStyle.java
@Override public boolean equals(Object obj) { EqualsBuilder equalsBuilder = new EqualsBuilder().appendSuper(super.equals(obj)); if (equalsBuilder.isEquals()) { DRDesignStyle o = (DRDesignStyle) obj; if (!(parentStyle == null ? o.getParentStyle() == null : parentStyle.getName().equals(o.getParentStyle().getName()))) { return false; }/*from w ww . ja va 2 s .c o m*/ equalsBuilder.append(name, o.name).append(conditionalStyles, o.conditionalStyles); } return equalsBuilder.isEquals(); }
From source file:com.qcadoo.mes.assignmentToShift.dataProviders.AssignmentToShiftCriteria.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }// w w w. ja v a2 s . c om if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } AssignmentToShiftCriteria rhs = (AssignmentToShiftCriteria) obj; return new EqualsBuilder().append(this.shiftCriteria, rhs.shiftCriteria).append(this.criteria, rhs.criteria) .isEquals(); }
From source file:com.esofthead.mycollab.module.tracker.domain.MetaData.java
public final boolean equals(Object obj) { if (obj == null) { return false; }/*w ww. j av a2s .co m*/ if (obj == this) { return true; } if (!obj.getClass().isAssignableFrom(getClass())) { return false; } MetaData item = (MetaData) obj; return new EqualsBuilder().append(id, item.id).build(); }
From source file:com.jdom.get.stuff.done.domain.TaskList.java
@Override public boolean equals(Object obj) { if (obj instanceof TaskList) { TaskList other = (TaskList) obj; EqualsBuilder eqBuilder = new EqualsBuilder(); eqBuilder.append(this.getName(), other.getName()); return eqBuilder.isEquals(); }//from ww w . j a v a 2s . c o m return false; }
From source file:io.headpro.entity.PeriodTotal.java
@Override public boolean equals(Object obj) { if (obj == this) { return true; }//w w w . j a v a 2 s . c om if (obj instanceof PeriodTotal) { final PeriodTotal other = (PeriodTotal) obj; return new EqualsBuilder().append(getTotal(), other.getTotal()) .append(getStartDate(), other.getStartDate()).append(getEndDate(), other.getEndDate()) .isEquals(); } else { return false; } }
From source file:net.havox.times.model.impl.AbstractChangeAwareClass.java
@Override public boolean equals(Object object) { if (this == object) { return true; } else if (object == null) { return false; } else if (this.getClass() == object.getClass()) { T typedObject = (T) object;//w w w .j a v a2s . co m if (this.getId() == null) { return (this == typedObject); } else { EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getId(), typedObject.getId()); return builder.isEquals(); } } return false; }
From source file:com.ejisto.modules.recorder.ResponseHeader.java
@Override public boolean equals(Object obj) { if (obj == null || !obj.getClass().isAssignableFrom(getClass())) { return false; }/*from w ww.j a v a2 s . com*/ if (obj == this) { return true; } ResponseHeader other = (ResponseHeader) obj; return new EqualsBuilder().appendSuper(super.equals(obj)).append(valueAsString, other.valueAsString) .append(type, other.type).isEquals(); }
From source file:com.hp.ov.sdk.dto.ExtraStorageVolume.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExtraStorageVolume that = (ExtraStorageVolume) o; return new EqualsBuilder().append(extra, that.extra).append(extraType, that.extraType) .append(owner, that.owner).append(ownerUri, that.ownerUri).append(resourceUri, that.resourceUri) .isEquals();// www .j a v a2 s . c om }