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.receive.Recipient.java
@Override public boolean equals(Object other) { if (other == this) { return true; }/* w ww . j ava 2s . c om*/ if ((other instanceof Recipient) == false) { return false; } Recipient rhs = ((Recipient) other); return new EqualsBuilder().append(id, rhs.id).isEquals(); }
From source file:com.antonjohansson.elasticsearchshell.domain.ClusterHealth.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }//w ww . ja v a 2 s .c o m if (obj == this) { return true; } ClusterHealth that = (ClusterHealth) obj; return new EqualsBuilder().append(this.clusterName, that.clusterName).append(this.status, that.status) .append(this.numberOfNodes, that.numberOfNodes) .append(this.numberOfDataNodes, that.numberOfDataNodes).isEquals(); }
From source file:com.deegeu.facebook.messenger.model.receive.Optin.java
@Override public boolean equals(Object other) { if (other == this) { return true; }//w ww. jav a 2s . c om if ((other instanceof Optin) == false) { return false; } Optin rhs = ((Optin) other); return new EqualsBuilder().append(ref, rhs.ref).isEquals(); }
From source file:com.anrisoftware.sscontrol.types.internal.UserPasswordImpl.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from ww w. j av a 2s .co m if (obj == this) { return true; } if (!(obj instanceof UserPasswordImpl)) { return false; } UserPasswordImpl rhs = (UserPasswordImpl) obj; return new EqualsBuilder().append(name, rhs.name).append(password, rhs.password).isEquals(); }
From source file:io.microprofile.showcase.web.Endpoints.java
@Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || this.getClass() != o.getClass()) return false; final Endpoints endpoints = (Endpoints) o; return new EqualsBuilder().append(this.application, endpoints.application).isEquals(); }
From source file:com.hp.ov.sdk.dto.generated.ConnectionProperty.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; ConnectionProperty that = (ConnectionProperty) obj; return new EqualsBuilder().append(propertyName, that.propertyName).append(value, that.value) .append(valueFormat, that.valueFormat).append(valueType, that.valueType).isEquals(); }
From source file:cz.jirutka.beuri.parser.ast.UnaryFunction.java
@Override public boolean equals(Object obj) { if (obj == null) return false; if (getClass() != obj.getClass()) return false; final UnaryFunction other = (UnaryFunction) obj; return new EqualsBuilder().append(operator, other.operator).append(argument, other.argument).isEquals(); }
From source file:de.uniwue.info6.database.map.Scenario.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//from www . ja v a 2s. com if (obj == null) { return false; } if (!(obj instanceof Scenario)) { return false; } Scenario other = (Scenario) obj; return new EqualsBuilder().append(id, other.getId()).isEquals(); }
From source file:io.lavagna.model.User.java
@Override public boolean equals(Object obj) { if (obj == null || !(obj instanceof User)) { return false; }/*from w w w. j a v a 2 s . c om*/ User u = (User) obj; return new EqualsBuilder().append(id, u.id).append(provider, u.provider).append(username, u.username) .append(email, u.email).append(displayName, u.displayName).append(enabled, u.enabled) .append(emailNotification, u.emailNotification).append(skipOwnNotifications, u.skipOwnNotifications) .isEquals(); }
From source file:net.sf.dynamicreports.design.base.style.DRDesignBorder.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; }//from w w w . j a v a 2 s .co m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } DRDesignBorder o = (DRDesignBorder) obj; EqualsBuilder equalsBuilder = new EqualsBuilder().append(topPen, o.topPen).append(leftPen, o.leftPen) .append(bottomPen, o.bottomPen).append(rightPen, o.rightPen); return equalsBuilder.isEquals(); }