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.mycsense.carbondb.domain.Keyword.java
@Override public boolean equals(Object obj) { if (!(obj instanceof Keyword)) return false; if (obj == this) return true; Keyword rhs = (Keyword) obj;/*from w ww . j a va 2 s.co m*/ return new EqualsBuilder().append(id, rhs.getId()).isEquals(); }
From source file:io.netlibs.bgp.protocol.attributes.UnknownPathAttribute.java
@Override protected boolean subclassEquals(PathAttribute obj) { UnknownPathAttribute o = (UnknownPathAttribute) obj; return (new EqualsBuilder()).append(getTypeCode(), o.getTypeCode()).append(getValue(), o.getValue()) .isEquals();//www . ja v a 2 s . co m }
From source file:com.hp.ov.sdk.dto.OverriddenSettingsTemplate.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; OverriddenSettingsTemplate that = (OverriddenSettingsTemplate) obj; return new EqualsBuilder().append(id, that.id).append(value, that.value).isEquals(); }
From source file:jodtemplate.template.expression.InlineListExpression.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }/*from w w w . j av a 2 s. c om*/ if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } final InlineListExpression rhs = (InlineListExpression) obj; return new EqualsBuilder().append(what, rhs.what).append(as, rhs.as).append(variable, rhs.variable) .isEquals(); }
From source file:io.netlibs.bgp.protocol.BinaryNextHop.java
@Override public boolean equals(final Object obj) { if (!(obj instanceof BinaryNextHop)) { return false; }/* w ww . j av a2 s. c o m*/ final BinaryNextHop o = (BinaryNextHop) obj; return (new EqualsBuilder()).append(this.getAddress(), o.getAddress()).isEquals(); }
From source file:bad.robot.excel.AbstractValueType.java
@Override public boolean equals(Object other) { if (other == null) return false; if (other == this) return true; if (this.getClass().equals(other.getClass())) return new EqualsBuilder().append(value(), ((AbstractValueType) other).value()).isEquals(); return false; }
From source file:ch.aonyx.broker.ib.api.order.PairTagValue.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }//from w ww . jav a 2 s .c o m if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } final PairTagValue rhs = (PairTagValue) obj; return new EqualsBuilder().append(tagName, rhs.tagName).append(value, rhs.value).isEquals(); }
From source file:com.newlandframework.avatarmq.model.RemoteChannelData.java
public boolean equals(Object obj) { boolean result = false; if (obj != null && RemoteChannelData.class.isAssignableFrom(obj.getClass())) { RemoteChannelData info = (RemoteChannelData) obj; result = new EqualsBuilder().append(clientId, info.getClientId()).isEquals(); }/*from w w w .j a v a 2 s. c o m*/ return result; }
From source file:com.jdom.stat.flash.domain.Deck.java
@Override public boolean equals(Object obj) { if (obj instanceof Deck) { Deck other = (Deck) obj;// w ww. j av a 2 s . c om EqualsBuilder builder = new EqualsBuilder(); builder.append(this.name, other.name); builder.append(this.version, other.version); return builder.isEquals(); } return super.equals(obj); }
From source file:com.hp.ov.sdk.dto.BootTargetTemplate.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null || getClass() != obj.getClass()) return false; BootTargetTemplate that = (BootTargetTemplate) obj; return new EqualsBuilder().append(arrayWwpn, that.arrayWwpn).append(lun, that.lun).isEquals(); }