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

com.google.appengine.api.datastore.AutoValue_PreparedMultiQuery_KeyAndProperties Maven / Gradle / Ivy

There is a newer version: 2.0.32
Show newest version
package com.google.appengine.api.datastore;

import java.util.Map;
import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PreparedMultiQuery_KeyAndProperties extends PreparedMultiQuery.KeyAndProperties {

  private final Key key;

  @Nullable
  private final Map properties;

  AutoValue_PreparedMultiQuery_KeyAndProperties(
      Key key,
      @Nullable Map properties) {
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    this.properties = properties;
  }

  @Override
  Key key() {
    return key;
  }

  @Nullable
  @Override
  Map properties() {
    return properties;
  }

  @Override
  public String toString() {
    return "KeyAndProperties{"
        + "key=" + key + ", "
        + "properties=" + properties
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PreparedMultiQuery.KeyAndProperties) {
      PreparedMultiQuery.KeyAndProperties that = (PreparedMultiQuery.KeyAndProperties) o;
      return this.key.equals(that.key())
          && (this.properties == null ? that.properties() == null : this.properties.equals(that.properties()));
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy