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

dev.cel.common.values.AutoValue_OptionalValue Maven / Gradle / Ivy

The newest version!
package dev.cel.common.values;

import org.jspecify.annotations.Nullable;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_OptionalValue extends OptionalValue {

  private final @Nullable E innerValue;

  AutoValue_OptionalValue(
      @Nullable E innerValue) {
    this.innerValue = innerValue;
  }

  @Override
  @Nullable E innerValue() {
    return innerValue;
  }

  @Override
  public String toString() {
    return "OptionalValue{"
        + "innerValue=" + innerValue
        + "}";
  }

  @Override
  public boolean equals(@Nullable Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof OptionalValue) {
      OptionalValue that = (OptionalValue) o;
      return (this.innerValue == null ? that.innerValue() == null : this.innerValue.equals(that.innerValue()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy