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

com.google.cloud.storage.contrib.nio.AutoValue_OptionUserMetadata Maven / Gradle / Ivy

There is a newer version: 0.127.26
Show newest version
package com.google.cloud.storage.contrib.nio;

import javax.annotation.Generated;

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

  private final String key;

  private final String value;

  AutoValue_OptionUserMetadata(
      String key,
      String value) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
  }

  @Override
  String key() {
    return key;
  }

  @Override
  String value() {
    return value;
  }

  @Override
  public String toString() {
    return "OptionUserMetadata{"
        + "key=" + key + ", "
        + "value=" + value
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof OptionUserMetadata) {
      OptionUserMetadata that = (OptionUserMetadata) o;
      return this.key.equals(that.key())
          && this.value.equals(that.value());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= key.hashCode();
    h$ *= 1000003;
    h$ ^= value.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy