Package org.apache.commons.lang.builder

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


    return true;
  }

  @Override
  public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();

    boolean present_trace_id = true;
    builder.append(present_trace_id);
    if (present_trace_id)
      builder.append(trace_id);

    boolean present_name = true && (isSetName());
    builder.append(present_name);
    if (present_name)
      builder.append(name);

    boolean present_id = true;
    builder.append(present_id);
    if (present_id)
      builder.append(id);

    boolean present_parent_id = true && (isSetParent_id());
    builder.append(present_parent_id);
    if (present_parent_id)
      builder.append(parent_id);

    boolean present_annotations = true && (isSetAnnotations());
    builder.append(present_annotations);
    if (present_annotations)
      builder.append(annotations);

    boolean present_binary_annotations = true && (isSetBinary_annotations());
    builder.append(present_binary_annotations);
    if (present_binary_annotations)
      builder.append(binary_annotations);

    boolean present_debug = true && (isSetDebug());
    builder.append(present_debug);
    if (present_debug)
      builder.append(debug);

    return builder.toHashCode();
  }
View Full Code Here


    this.playCount = playCount;
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(artist)
    .append(playCount)
    .toHashCode();
  }
View Full Code Here

    this.name = name;
  }
 
  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(artist)
    .append(name)
    .toHashCode();
  }
View Full Code Here

    return totalLengthInSeconds / 3600;
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
        .append(artistCount)
        .append(albumCount)
        .append(trackCount)
        .append(totalLengthInBytes)
        .append(totalLengthInSeconds)
View Full Code Here

    this.content = content;
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(tagName)
    .append(summary)
    .append(content)
    .toHashCode();
  }
View Full Code Here

    this.playCount = playCount;
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(track)
    .append(playCount)
    .toHashCode();
  }
View Full Code Here

    this.sessionKey = sessionKey;
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(lastFmUsername)
    .append(sessionKey)
    .toHashCode();
  }
View Full Code Here

    return metaData;
  }
 
  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(directory)
    .append(filename)
    .append(modified)
    .append(size)
    .toHashCode();
View Full Code Here

    this.isInSearchIndex = isInSearchIndex;
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(artist.getName())
    .append(smallImageUrl)
    .append(mediumImageUrl)
    .append(largeImageUrl)
    .append(extraLargeImageUrl)
View Full Code Here

    this.artistPlayCounts = artistPlayCounts;
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
    .append(groupName)
    .append(artistPlayCounts)
    .toHashCode();
  }
View Full Code Here

TOP

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

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.