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

com.github.kristofa.brave.AutoValue_KeyValueAnnotation Maven / Gradle / Ivy

There is a newer version: 4.13.6
Show newest version

package com.github.kristofa.brave;

import javax.annotation.Generated;

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

  private final String key;
  private final String value;

  AutoValue_KeyValueAnnotation(
      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
  public String getKey() {
    return key;
  }

  @Override
  public String getValue() {
    return value;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy