use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class RadiusTokenCredential method equals.
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof RadiusTokenCredential)) {
return false;
}
if (obj == this) {
return true;
}
final RadiusTokenCredential other = (RadiusTokenCredential) obj;
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.token, other.token);
return builder.isEquals();
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class OneTimeTokenCredential method equals.
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof OneTimeTokenCredential)) {
return false;
}
if (obj == this) {
return true;
}
final OneTimeTokenCredential other = (OneTimeTokenCredential) obj;
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.token, other.token);
return builder.isEquals();
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project cas by apereo.
the class AbstractCredential method equals.
@Override
public boolean equals(final Object other) {
if (other == null) {
return false;
}
if (!(other instanceof Credential)) {
return false;
}
if (other == this) {
return true;
}
final EqualsBuilder builder = new EqualsBuilder();
builder.append(getId(), ((Credential) other).getId());
return builder.isEquals();
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project xwiki-platform by xwiki.
the class AbstractRecordableEventDescriptor method equals.
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RecordableEventDescriptor) {
RecordableEventDescriptor other = (RecordableEventDescriptor) o;
EqualsBuilder equalsBuilder = new EqualsBuilder();
equalsBuilder.append(other.getApplicationName(), this.getApplicationName());
equalsBuilder.append(other.getEventType(), this.getEventType());
equalsBuilder.append(other.getApplicationId(), this.getApplicationId());
return equalsBuilder.isEquals();
}
return false;
}
use of org.apache.commons.lang3.builder.EqualsBuilder in project xwiki-platform by xwiki.
the class XWikiLink method equals.
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof XWikiLink)) {
return false;
}
XWikiLink o = (XWikiLink) obj;
EqualsBuilder builder = new EqualsBuilder();
builder.append(getDocId(), o.getDocId());
builder.append(getLink(), o.getLink());
builder.append(getFullName(), o.getFullName());
return builder.isEquals();
}
Aggregations