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

dagger.internal.codegen.kotlin.AutoValue_KotlinMetadata_PropertyMetadata Maven / Gradle / Ivy

The newest version!
package dagger.internal.codegen.kotlin;

import java.util.Optional;

// Generated by com.google.auto.value.processor.AutoValueProcessor
final class AutoValue_KotlinMetadata_PropertyMetadata extends KotlinMetadata.PropertyMetadata {

  private final int flags;

  private final String name;

  private final Optional fieldSignature;

  private final Optional getterSignature;

  private final Optional methodForAnnotationsSignature;

  private AutoValue_KotlinMetadata_PropertyMetadata(
      int flags,
      String name,
      Optional fieldSignature,
      Optional getterSignature,
      Optional methodForAnnotationsSignature) {
    this.flags = flags;
    this.name = name;
    this.fieldSignature = fieldSignature;
    this.getterSignature = getterSignature;
    this.methodForAnnotationsSignature = methodForAnnotationsSignature;
  }

  @Override
  int flags() {
    return flags;
  }

  @Override
  String name() {
    return name;
  }

  @Override
  Optional fieldSignature() {
    return fieldSignature;
  }

  @Override
  Optional getterSignature() {
    return getterSignature;
  }

  @Override
  Optional methodForAnnotationsSignature() {
    return methodForAnnotationsSignature;
  }

  @Override
  public String toString() {
    return "PropertyMetadata{"
        + "flags=" + flags + ", "
        + "name=" + name + ", "
        + "fieldSignature=" + fieldSignature + ", "
        + "getterSignature=" + getterSignature + ", "
        + "methodForAnnotationsSignature=" + methodForAnnotationsSignature
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof KotlinMetadata.PropertyMetadata) {
      KotlinMetadata.PropertyMetadata that = (KotlinMetadata.PropertyMetadata) o;
      return this.flags == that.flags()
          && this.name.equals(that.name())
          && this.fieldSignature.equals(that.fieldSignature())
          && this.getterSignature.equals(that.getterSignature())
          && this.methodForAnnotationsSignature.equals(that.methodForAnnotationsSignature());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= flags;
    h$ *= 1000003;
    h$ ^= name.hashCode();
    h$ *= 1000003;
    h$ ^= fieldSignature.hashCode();
    h$ *= 1000003;
    h$ ^= getterSignature.hashCode();
    h$ *= 1000003;
    h$ ^= methodForAnnotationsSignature.hashCode();
    return h$;
  }

  static final class Builder implements KotlinMetadata.PropertyMetadata.Builder {
    private Integer flags;
    private String name;
    private Optional fieldSignature = Optional.empty();
    private Optional getterSignature = Optional.empty();
    private Optional methodForAnnotationsSignature = Optional.empty();
    Builder() {
    }
    @Override
    public KotlinMetadata.PropertyMetadata.Builder flags(int flags) {
      this.flags = flags;
      return this;
    }
    @Override
    public KotlinMetadata.PropertyMetadata.Builder name(String name) {
      if (name == null) {
        throw new NullPointerException("Null name");
      }
      this.name = name;
      return this;
    }
    @Override
    public KotlinMetadata.PropertyMetadata.Builder fieldSignature(Optional fieldSignature) {
      if (fieldSignature == null) {
        throw new NullPointerException("Null fieldSignature");
      }
      this.fieldSignature = fieldSignature;
      return this;
    }
    @Override
    public KotlinMetadata.PropertyMetadata.Builder getterSignature(Optional getterSignature) {
      if (getterSignature == null) {
        throw new NullPointerException("Null getterSignature");
      }
      this.getterSignature = getterSignature;
      return this;
    }
    @Override
    public KotlinMetadata.PropertyMetadata.Builder methodForAnnotationsSignature(Optional methodForAnnotationsSignature) {
      if (methodForAnnotationsSignature == null) {
        throw new NullPointerException("Null methodForAnnotationsSignature");
      }
      this.methodForAnnotationsSignature = methodForAnnotationsSignature;
      return this;
    }
    @Override
    public KotlinMetadata.PropertyMetadata build() {
      if (this.flags == null
          || this.name == null) {
        StringBuilder missing = new StringBuilder();
        if (this.flags == null) {
          missing.append(" flags");
        }
        if (this.name == null) {
          missing.append(" name");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_KotlinMetadata_PropertyMetadata(
          this.flags,
          this.name,
          this.fieldSignature,
          this.getterSignature,
          this.methodForAnnotationsSignature);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy