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.intuit.wasabi.authorizationobjects.UserPermissionsList.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (!(obj instanceof UserPermissionsList)) return false; UserPermissionsList other = (UserPermissionsList) obj; return new EqualsBuilder().append(getPermissionsList().size(), other.getPermissionsList().size()) .isEquals();/* www .ja v a 2 s . co m*/ }
From source file:ch.aonyx.broker.ib.api.contract.UnderlyingCombo.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }//www . j av a 2 s .co m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } final UnderlyingCombo rhs = (UnderlyingCombo) obj; return new EqualsBuilder().append(contractId, rhs.contractId).append(delta, rhs.delta) .append(price, rhs.price).isEquals(); }
From source file:com.galenframework.validation.ValidationError.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (!(obj instanceof ValidationError)) return false; ValidationError rhs = (ValidationError) obj; return new EqualsBuilder() //@formatter:off .append(messages, rhs.messages).append(onlyWarn, rhs.onlyWarn).isEquals(); //@formatter:on }
From source file:de.kaiserpfalzEdv.office.core.impl.DisplayNameHolderDTO.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//w w w . j a v a2 s . c o m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } DisplayNameHolderDTO rhs = (DisplayNameHolderDTO) obj; return new EqualsBuilder().append(this.getDisplayName(), rhs.getDisplayName()).isEquals(); }
From source file:io.netlibs.bgp.protocol.attributes.LocalPrefPathAttribute.java
@Override protected boolean subclassEquals(PathAttribute obj) { LocalPrefPathAttribute o = (LocalPrefPathAttribute) obj; return (new EqualsBuilder()).append(getLocalPreference(), o.getLocalPreference()).isEquals(); }
From source file:de.blizzy.documentr.access.OpenId.java
@Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { OpenId other = (OpenId) o;/*from ww w . ja v a2 s . c o m*/ return new EqualsBuilder().append(delegateId, other.delegateId).append(realId, other.realId).isEquals(); } return false; }
From source file:com.galenframework.specs.SpecComplex.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (obj == this) return true; if (!(obj instanceof SpecComplex)) return false; SpecComplex rhs = (SpecComplex) obj; return new EqualsBuilder().append(object, rhs.object).append(locations, rhs.locations).isEquals(); }
From source file:annis.service.objects.AnnisTokenImpl.java
@Override public boolean equals(Object o) { if (!(o instanceof AnnisTokenImpl)) { return false; }/*from w w w . ja va 2 s .co m*/ AnnisTokenImpl other = (AnnisTokenImpl) o; return new EqualsBuilder().append(this.id, other.id).append(this.text, other.text).isEquals(); }
From source file:com.antonjohansson.elasticsearchshell.domain.node.Node.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }/*from w w w. j a v a 2s .co m*/ if (obj == this) { return true; } Node that = (Node) obj; return new EqualsBuilder().append(this.name, that.name).append(this.operatingSystem, that.operatingSystem) .isEquals(); }
From source file:jodtemplate.template.expression.VariableExpression.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }//from w ww . j a va2 s . c om if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } final VariableExpression rhs = (VariableExpression) obj; return new EqualsBuilder().append(variable, rhs.variable).append(params, rhs.params) .append(defaultValue, rhs.defaultValue).isEquals(); }