Examples of EqualsBuilder


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

      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

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

      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

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

    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

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

    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

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

            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

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

        } 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

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

            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

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

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

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

        if (! (obj instanceof CompositeSpecificationImpl)) {
            return false;
        }
        else {
            CompositeSpecificationImpl otherSpec = (CompositeSpecificationImpl) obj;
            EqualsBuilder builder = new EqualsBuilder();
            return builder.append(this.specificationClass, otherSpec.specificationClass)
                                  .append(this.specificationMethod, otherSpec.specificationMethod)
                                  .isEquals();
        }
    }
View Full Code Here

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

    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof IOffice)) return false;
       
        IOffice other = (IOffice) obj;
       
        return new EqualsBuilder().append(this.getOfficeId(), other.getOfficeId()).isEquals();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.