All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jclouds.b2.domain.AutoValue_ListPartsResponse Maven / Gradle / Ivy

The newest version!

package org.jclouds.b2.domain;

import java.util.List;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_ListPartsResponse extends ListPartsResponse {

  private final Integer nextPartNumber;
  private final List parts;

  AutoValue_ListPartsResponse(
      @Nullable Integer nextPartNumber,
      List parts) {
    this.nextPartNumber = nextPartNumber;
    if (parts == null) {
      throw new NullPointerException("Null parts");
    }
    this.parts = parts;
  }

  @Nullable
  @Override
  public Integer nextPartNumber() {
    return nextPartNumber;
  }

  @Override
  public List parts() {
    return parts;
  }

  @Override
  public String toString() {
    return "ListPartsResponse{"
        + "nextPartNumber=" + nextPartNumber + ", "
        + "parts=" + parts
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ListPartsResponse) {
      ListPartsResponse that = (ListPartsResponse) o;
      return ((this.nextPartNumber == null) ? (that.nextPartNumber() == null) : this.nextPartNumber.equals(that.nextPartNumber()))
           && (this.parts.equals(that.parts()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (nextPartNumber == null) ? 0 : this.nextPartNumber.hashCode();
    h *= 1000003;
    h ^= this.parts.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy