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

com.kmwllc.lucille.objects.RunStatus Maven / Gradle / Ivy

The newest version!
package com.kmwllc.lucille.objects;

import java.util.Objects;

public class RunStatus {

  private final String runId;

  private boolean isRunning;

  public RunStatus(String runId, boolean isRunning) {
    this.runId = runId;
    this.isRunning = isRunning;
  }

  public RunStatus(boolean isRunning) {
    this.runId = "";
    this.isRunning = isRunning;
  }

  public String getRunId() {
    return runId;
  }

  public boolean isRunning() {
    return isRunning;
  }

  @Override
  public boolean equals(Object o) {
    if (!(o instanceof RunStatus)) {
      return false;
    }

    RunStatus status = (RunStatus) o;

    return this.isRunning == status.isRunning && Objects.equals(this.runId, status.runId);
  }

  @Override
  public String toString() {
    return String.format("{'isRunning': '%s', 'runId': '%s'}", this.isRunning, this.runId);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy