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

com.google.errorprone.bugpatterns.AutoValue_ProtoRedundantSet_RepeatedField Maven / Gradle / Ivy

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

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProtoRedundantSet_RepeatedField extends ProtoRedundantSet.RepeatedField {

  private final String name;

  private final int index;

  AutoValue_ProtoRedundantSet_RepeatedField(
      String name,
      int index) {
    if (name == null) {
      throw new NullPointerException("Null name");
    }
    this.name = name;
    this.index = index;
  }

  @Override
  String getName() {
    return name;
  }

  @Override
  int getIndex() {
    return index;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ProtoRedundantSet.RepeatedField) {
      ProtoRedundantSet.RepeatedField that = (ProtoRedundantSet.RepeatedField) o;
      return this.name.equals(that.getName())
          && this.index == that.getIndex();
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy