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

com.google.errorprone.refaster.AutoValue_UModifiers Maven / Gradle / Ivy

There is a newer version: 2.28.0
Show newest version
package com.google.errorprone.refaster;

import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;

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

  private final long flagBits;

  private final ImmutableList getAnnotations;

  AutoValue_UModifiers(
      long flagBits,
      ImmutableList getAnnotations) {
    this.flagBits = flagBits;
    if (getAnnotations == null) {
      throw new NullPointerException("Null getAnnotations");
    }
    this.getAnnotations = getAnnotations;
  }

  @Override
  long flagBits() {
    return flagBits;
  }

  @Override
  public ImmutableList getAnnotations() {
    return getAnnotations;
  }

  @Override
  public String toString() {
    return "UModifiers{"
         + "flagBits=" + flagBits + ", "
         + "getAnnotations=" + getAnnotations
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof UModifiers) {
      UModifiers that = (UModifiers) o;
      return this.flagBits == that.flagBits()
          && this.getAnnotations.equals(that.getAnnotations());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (int) ((flagBits >>> 32) ^ flagBits);
    h$ *= 1000003;
    h$ ^= getAnnotations.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy