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

net.goui.flogger.testing.AutoValue_LogEntry Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
package net.goui.flogger.testing;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import java.time.Instant;
import javax.annotation.processing.Generated;
import org.checkerframework.checker.nullness.qual.Nullable;

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

  private final String className;

  private final String methodName;

  private final String levelName;

  private final LevelClass levelClass;

  private final Instant timeStamp;

  private final Object threadId;

  private final String message;

  private final ImmutableMap> metadata;

  private final @Nullable Throwable cause;

  AutoValue_LogEntry(
      String className,
      String methodName,
      String levelName,
      LevelClass levelClass,
      Instant timeStamp,
      Object threadId,
      String message,
      ImmutableMap> metadata,
      @Nullable Throwable cause) {
    if (className == null) {
      throw new NullPointerException("Null className");
    }
    this.className = className;
    if (methodName == null) {
      throw new NullPointerException("Null methodName");
    }
    this.methodName = methodName;
    if (levelName == null) {
      throw new NullPointerException("Null levelName");
    }
    this.levelName = levelName;
    if (levelClass == null) {
      throw new NullPointerException("Null levelClass");
    }
    this.levelClass = levelClass;
    if (timeStamp == null) {
      throw new NullPointerException("Null timeStamp");
    }
    this.timeStamp = timeStamp;
    if (threadId == null) {
      throw new NullPointerException("Null threadId");
    }
    this.threadId = threadId;
    if (message == null) {
      throw new NullPointerException("Null message");
    }
    this.message = message;
    if (metadata == null) {
      throw new NullPointerException("Null metadata");
    }
    this.metadata = metadata;
    this.cause = cause;
  }

  @Override
  public String className() {
    return className;
  }

  @Override
  public String methodName() {
    return methodName;
  }

  @Override
  String levelName() {
    return levelName;
  }

  @Override
  public LevelClass levelClass() {
    return levelClass;
  }

  @Override
  public Instant timeStamp() {
    return timeStamp;
  }

  @Override
  Object threadId() {
    return threadId;
  }

  @Override
  public String message() {
    return message;
  }

  @Override
  public ImmutableMap> metadata() {
    return metadata;
  }

  @Override
  public @Nullable Throwable cause() {
    return cause;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy