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.antonjohansson.elasticsearchshell.index.IndexKey.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }//from w w w. j a va 2 s. co m if (obj == this) { return true; } IndexKey that = (IndexKey) obj; return new EqualsBuilder().append(this.name, that.name).isEquals(); }
From source file:com.antonjohansson.elasticsearchshell.session.SessionKey.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }//from w ww . ja va 2 s. c o m if (obj == this) { return true; } SessionKey that = (SessionKey) obj; return new EqualsBuilder().append(this.name, that.name).isEquals(); }
From source file:com.mingo.domain.User.java
/** * {@inheritDoc}/* ww w . j a v a 2 s . c o m*/ */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof User)) { return false; } User that = (User) o; return new EqualsBuilder().appendSuper(super.equals(that)).isEquals(); }
From source file:com.hp.ov.sdk.dto.serverhardwaretype.ServerHardwareTypeUpdate.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o instanceof ServerHardwareTypeUpdate) { ServerHardwareTypeUpdate that = (ServerHardwareTypeUpdate) o; return new EqualsBuilder().append(name, that.name).append(description, that.description).isEquals(); }//w ww .j a v a 2s. c o m return false; }
From source file:com.antonjohansson.elasticsearchshell.connection.ConnectionKey.java
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != getClass()) { return false; }//from ww w . j a v a2 s . co m if (obj == this) { return true; } ConnectionKey that = (ConnectionKey) obj; return new EqualsBuilder().append(this.name, that.name).isEquals(); }
From source file:com.riversoforion.zambezi.dice.Die.java
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null || !(obj instanceof Die)) return false; Die other = (Die) obj;/*ww w.j a va 2 s .co m*/ return new EqualsBuilder().append(sides, other.sides).append(value, other.value).isEquals(); }
From source file:net.mindengine.dashserver.assets.ScriptAsset.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ScriptAsset that = (ScriptAsset) o;/* w w w. ja v a 2 s . c om*/ return new EqualsBuilder().append(filePath, that.filePath).isEquals(); }
From source file:com.mingo.domain.Domain.java
/** * {@inheritDoc}/* www. j a va2s . c o m*/ */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Domain)) { return false; } Domain that = (Domain) o; return new EqualsBuilder().append(id, that.id).isEquals(); }
From source file:net.mindengine.dashserver.assets.StyleAsset.java
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; StyleAsset that = (StyleAsset) o;/*from w ww .j a v a2 s . co m*/ return new EqualsBuilder().append(assetPath, that.assetPath).isEquals(); }
From source file:fm.last.musicbrainz.data.model.ReleaseCountryCompositeKey.java
@Override public boolean equals(Object object) { if (object == null) { return false; }//ww w .j a v a2 s .c om if (object == this) { return true; } if (object.getClass() != getClass()) { return false; } ReleaseCountryCompositeKey rhs = (ReleaseCountryCompositeKey) object; return new EqualsBuilder().append(release, rhs.release).append(country, rhs.country).isEquals(); }