Search in sources :

Example 6 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 7 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 8 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 9 with EqualsBuilder

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;
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 10 with EqualsBuilder

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();
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Aggregations

EqualsBuilder (org.apache.commons.lang3.builder.EqualsBuilder)34 lombok.val (lombok.val)2 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 Credential (org.apereo.cas.authentication.Credential)1 InvalidSettingsException (org.knime.core.node.InvalidSettingsException)1