Search in sources :

Example 16 with EqualsBuilder

use of org.apache.commons.lang3.builder.EqualsBuilder in project Gaffer by gchq.

the class GraphSerialisable method equals.

@Override
public boolean equals(final Object obj) {
    final Boolean rtn;
    if (null == obj || !(obj instanceof GraphSerialisable)) {
        rtn = false;
    } else {
        final GraphSerialisable that = (GraphSerialisable) obj;
        rtn = new EqualsBuilder().append(this.getConfig(), that.getConfig()).append(this.getSchema(), that.getSchema()).append(this.getProperties(), that.getProperties()).build();
    }
    return rtn;
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 17 with EqualsBuilder

use of org.apache.commons.lang3.builder.EqualsBuilder in project CzechIdMng by bcvsolutions.

the class FilterKey method equals.

@Override
public boolean equals(final Object o) {
    if (!(o instanceof FilterKey)) {
        return false;
    }
    FilterKey that = (FilterKey) o;
    EqualsBuilder builder = new EqualsBuilder();
    return builder.append(entityClass, that.entityClass).append(name, that.name).isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 18 with EqualsBuilder

use of org.apache.commons.lang3.builder.EqualsBuilder in project CzechIdMng by bcvsolutions.

the class AbstractDto method equals.

@Override
public boolean equals(final Object o) {
    if (!(o instanceof AbstractDto)) {
        return false;
    }
    AbstractDto that = (AbstractDto) o;
    EqualsBuilder builder = new EqualsBuilder();
    if (id == null && that.id == null) {
        builder.appendSuper(super.equals(o));
    }
    return builder.append(id, that.id).isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 19 with EqualsBuilder

use of org.apache.commons.lang3.builder.EqualsBuilder in project CzechIdMng by bcvsolutions.

the class DefaultGrantedAuthorityDto method equals.

@Override
public boolean equals(final Object o) {
    if (!(o instanceof DefaultGrantedAuthorityDto)) {
        return false;
    }
    DefaultGrantedAuthorityDto that = (DefaultGrantedAuthorityDto) o;
    EqualsBuilder builder = new EqualsBuilder();
    return builder.append(authority, that.authority).isEquals();
}
Also used : EqualsBuilder(org.apache.commons.lang3.builder.EqualsBuilder)

Example 20 with EqualsBuilder

use of org.apache.commons.lang3.builder.EqualsBuilder in project knime-core by knime.

the class FilterModelRange method equals.

@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof FilterModelRange)) {
        return false;
    }
    FilterModelRange fobj = (FilterModelRange) obj;
    EqualsBuilder equalsBuilder = new EqualsBuilder();
    equalsBuilder.appendSuper(super.equals(fobj));
    equalsBuilder.append(m_minimum, fobj.m_minimum);
    equalsBuilder.append(m_maximum, fobj.m_maximum);
    equalsBuilder.append(m_minimumInclusive, fobj.m_minimumInclusive);
    equalsBuilder.append(m_maximumInclusive, fobj.m_maximumInclusive);
    return equalsBuilder.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