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

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

The newest version!
package com.google.gerrit.entities;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PatchSetApproval_UUID extends PatchSetApproval.UUID {

  private final String uuid;

  AutoValue_PatchSetApproval_UUID(
      String uuid) {
    if (uuid == null) {
      throw new NullPointerException("Null uuid");
    }
    this.uuid = uuid;
  }

  @Override
  String uuid() {
    return uuid;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PatchSetApproval.UUID) {
      PatchSetApproval.UUID that = (PatchSetApproval.UUID) o;
      return this.uuid.equals(that.uuid());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy