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

com.cerner.beadledom.jackson.AutoValue_SerializationFeatureFlag Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version


package com.cerner.beadledom.jackson;

import com.fasterxml.jackson.databind.SerializationFeature;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SerializationFeatureFlag extends SerializationFeatureFlag {

  private final SerializationFeature feature;

  private final Boolean isEnabled;

  AutoValue_SerializationFeatureFlag(
      SerializationFeature feature,
      Boolean isEnabled) {
    if (feature == null) {
      throw new NullPointerException("Null feature");
    }
    this.feature = feature;
    if (isEnabled == null) {
      throw new NullPointerException("Null isEnabled");
    }
    this.isEnabled = isEnabled;
  }

  @Override
  public SerializationFeature feature() {
    return feature;
  }

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

  @Override
  public String toString() {
    return "SerializationFeatureFlag{"
         + "feature=" + feature + ", "
         + "isEnabled=" + isEnabled
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SerializationFeatureFlag) {
      SerializationFeatureFlag that = (SerializationFeatureFlag) o;
      return this.feature.equals(that.feature())
          && this.isEnabled.equals(that.isEnabled());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy