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

com.google.gerrit.server.account.AutoValue_ProjectWatches_NotifyValue Maven / Gradle / Ivy

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


package com.google.gerrit.server.account;

import com.google.common.collect.ImmutableSet;
import com.google.gerrit.common.Nullable;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ProjectWatches_NotifyValue extends ProjectWatches.NotifyValue {

  private final String filter;

  private final ImmutableSet notifyTypes;

  AutoValue_ProjectWatches_NotifyValue(
      @Nullable String filter,
      ImmutableSet notifyTypes) {
    this.filter = filter;
    if (notifyTypes == null) {
      throw new NullPointerException("Null notifyTypes");
    }
    this.notifyTypes = notifyTypes;
  }

  @Nullable
  @Override
  public String filter() {
    return filter;
  }

  @Override
  public ImmutableSet notifyTypes() {
    return notifyTypes;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ProjectWatches.NotifyValue) {
      ProjectWatches.NotifyValue that = (ProjectWatches.NotifyValue) o;
      return ((this.filter == null) ? (that.filter() == null) : this.filter.equals(that.filter()))
           && (this.notifyTypes.equals(that.notifyTypes()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (filter == null) ? 0 : filter.hashCode();
    h$ *= 1000003;
    h$ ^= notifyTypes.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy