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:com.deegeu.facebook.messenger.model.send.ProductInfo.java
@Override public boolean equals(Object other) { if (other == this) { return true; }//from w w w .j a v a 2 s . co m if ((other instanceof ProductInfo) == false) { return false; } ProductInfo rhs = ((ProductInfo) other); return new EqualsBuilder().append(title, rhs.title).append(value, rhs.value).isEquals(); }
From source file:de.upb.wdqa.wdvd.db.implementation.DbRevisionImpl.java
@Override public boolean equals(Object obj) { if (obj == this) { return true; }//from w w w . ja va2s .c o m if (!(obj instanceof DbRevisionImpl)) { return false; } DbRevisionImpl rhs = (DbRevisionImpl) obj; return new EqualsBuilder().append(getRevisionId(), rhs.getRevisionId()).append(getSha1(), rhs.getSha1()) .append(getTags(), rhs.getTags()).isEquals(); }
From source file:hudson.plugins.git.opt.PreBuildMergeOptions.java
@Override public boolean equals(Object o) { if (this == o) { return true; }// w ww . j a va2s . com if (o == null || getClass() != o.getClass()) { return false; } PreBuildMergeOptions that = (PreBuildMergeOptions) o; return new EqualsBuilder().append(mergeRemote, that.mergeRemote).append(mergeTarget, that.mergeTarget) .isEquals(); }
From source file:com.deegeu.facebook.messenger.model.send.PriceList.java
@Override public boolean equals(Object other) { if (other == this) { return true; }// w w w .jav a 2 s.c o m if ((other instanceof PriceList) == false) { return false; } PriceList rhs = ((PriceList) other); return new EqualsBuilder().append(label, rhs.label).append(amount, rhs.amount).isEquals(); }
From source file:com.galenframework.page.Rect.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (!(obj instanceof Rect)) return false; Rect rhs = (Rect) obj;// ww w .j ava2s . co m return new EqualsBuilder().append(left, rhs.left).append(top, rhs.top).append(width, rhs.width) .append(height, rhs.height).isEquals(); }
From source file:com.anrisoftware.sscontrol.dns.arecord.ARecord.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }/*w ww. j ava 2 s . c o m*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } ARecord rhs = (ARecord) obj; return new EqualsBuilder().append(name, rhs.name).append(address, rhs.address).isEquals(); }
From source file:com.deegeu.facebook.messenger.model.receive.ReadReceipt.java
@Override public boolean equals(Object other) { if (other == this) { return true; }/*from w w w .j a va 2 s .c om*/ if ((other instanceof ReadReceipt) == false) { return false; } ReadReceipt rhs = ((ReadReceipt) other); return new EqualsBuilder().append(watermark, rhs.watermark).append(seq, rhs.seq).isEquals(); }
From source file:com.deegeu.facebook.messenger.model.send.AuxiliaryField.java
@Override public boolean equals(Object other) { if (other == this) { return true; }/* w w w. j ava2 s.c o m*/ if ((other instanceof AuxiliaryField) == false) { return false; } AuxiliaryField rhs = ((AuxiliaryField) other); return new EqualsBuilder().append(label, rhs.label).append(value, rhs.value).isEquals(); }
From source file:com.deegeu.facebook.messenger.model.send.SecondaryField.java
@Override public boolean equals(Object other) { if (other == this) { return true; }/*from ww w . j a va 2s . c o m*/ if ((other instanceof SecondaryField) == false) { return false; } SecondaryField rhs = ((SecondaryField) other); return new EqualsBuilder().append(label, rhs.label).append(value, rhs.value).isEquals(); }
From source file:com.esofthead.mycollab.module.crm.domain.ContactCase.java
public final boolean equals(Object obj) { if (obj == null) { return false; }// w w w . j av a 2 s . c om if (obj == this) { return true; } if (!obj.getClass().isAssignableFrom(getClass())) { return false; } ContactCase item = (ContactCase) obj; return new EqualsBuilder().append(id, item.id).build(); }