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

com.google.gerrit.server.util.AutoValue_LabelVote Maven / Gradle / Ivy

There is a newer version: 3.10.0-rc4
Show newest version


package com.google.gerrit.server.util;

import javax.annotation.Generated;

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

  private final String label;

  private final short value;

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

  @Override
  public String label() {
    return label;
  }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy