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

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

There is a newer version: 0.7.1
Show newest version
package dev.cel.common.values;

import org.jspecify.nullness.Nullable;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_BoolValue extends BoolValue {

  private final Boolean value;

  AutoValue_BoolValue(
      Boolean value) {
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
  }

  @Override
  public Boolean value() {
    return value;
  }

  @Override
  public String toString() {
    return "BoolValue{"
        + "value=" + value
        + "}";
  }

  @Override
  public boolean equals(@Nullable Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof BoolValue) {
      BoolValue that = (BoolValue) o;
      return this.value.equals(that.value());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy