Package org.apache.commons.lang.builder

Examples of org.apache.commons.lang.builder.EqualsBuilder


    if (o == null) return false;
    if (o == this) return true;
    if (o.getClass() != getClass()) return false;

    TagOccurrence to = (TagOccurrence) o;
    return new EqualsBuilder()
    .append(tag, to.tag)
    .append(occurrence, to.occurrence)
    .isEquals();
  }
View Full Code Here


      if (o == null) return false;
      if (o == this) return true;
      if (o.getClass() != getClass()) return false;

      Tag t = (Tag) o;
          return new EqualsBuilder()
          .append(name, t.name)
          .append(count, t.count)
          .isEquals();
  }
View Full Code Here

    if (o == null) return false;
    if (o == this) return true;
    if (o.getClass() != getClass()) return false;

    Scrobble s = (Scrobble) o;
    return new EqualsBuilder()
    .append(lastFmUser, s.lastFmUser)
    .append(track.getId(), s.track.getId())
    .append(startTime, s.startTime)
    .isEquals();
  }
View Full Code Here

      if (o == null) return false;
      if (o == this) return true;
      if (o.getClass() != getClass()) return false;

      ArtistRelation tr = (ArtistRelation) o;
          return new EqualsBuilder()
          .append(target, tr.target)
          .append(match, tr.match)
          .isEquals();
  }
View Full Code Here

      if (o == null) return false;
      if (o == this) return true;
      if (o.getClass() != getClass()) return false;

      RecommendedArtist ra = (RecommendedArtist) o;
      return new EqualsBuilder()
      .append(artist, ra.artist)
      .append(contextArtist1, ra.contextArtist1)
      .append(contextArtist2, ra.contextArtist2)
      .isEquals();
    }
View Full Code Here

    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof Employee)) return false;
       
        Employee other = (Employee) obj;
       
        return new EqualsBuilder().append(this.getMatriculationCode(), other.getMatriculationCode()).isEquals();
    }
View Full Code Here

    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof Office)) return false;
       
        Office other = (Office) obj;
       
        return new EqualsBuilder().append(this.getOfficeId(), other.getOfficeId()).isEquals();
    }
View Full Code Here

            return false;
        } else if (!(obj instanceof UserImpl)) {
            return false;
        } else {
            UserImpl other = (UserImpl) obj;
            return new EqualsBuilder()
            .append(this.username, other.username)
            .isEquals();
        }
    }
View Full Code Here

        } else if (!(obj instanceof FeedSubscriptionImpl)) {
            return false;
           
        } else {
            FeedSubscriptionImpl other = (FeedSubscriptionImpl) obj;
            return new EqualsBuilder()
            .append(this.name, other.name)
            .isEquals();
        }
    }
View Full Code Here

            return false;
        } else if (!obj.getClass().equals(this.getClass())) {
            return false;
        } else {
            PayloadEvent other = (PayloadEvent) obj;
            EqualsBuilder builder = new EqualsBuilder().append(this.source, other.source)
            .append(this.payload, other.payload)
            .append(this.notification, other.notification);
            return builder.isEquals();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang.builder.EqualsBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.