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;
}
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();
}
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();
}
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();
}
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();
}
Aggregations