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

com.google.gerrit.entities.AutoValue_LabelValue Maven / Gradle / Ivy

There is a newer version: 3.11.0-rc3
Show newest version
package com.google.gerrit.entities;

import javax.annotation.processing.Generated;

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

  private final short value;

  private final String text;

  AutoValue_LabelValue(
      short value,
      String text) {
    this.value = value;
    if (text == null) {
      throw new NullPointerException("Null text");
    }
    this.text = text;
  }

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

  @Override
  public String getText() {
    return text;
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy