Class LogEntry.State

java.lang.Object
ch.tocco.nice2.tasks.api.progress.LogEntry.State
Enclosing interface:
LogEntry

public static class LogEntry.State extends Object
Additional state of a log entry to the flag `failed` or `completed`.
  • Field Details

  • Constructor Details

    • State

      public State(@Nullable String details, List<String> temporaryFilterIds, @Nullable String taskState)
  • Method Details

    • withDetails

      public LogEntry.State withDetails(String details)
    • withTemporaryFilterId

      public LogEntry.State withTemporaryFilterId(String temporaryFilterId)
    • withTemporaryFilterIds

      public LogEntry.State withTemporaryFilterIds(List<String> temporaryFilterIds)
    • withTaskState

      public LogEntry.State withTaskState(String state)
    • getDetails

      public @Nullable String getDetails()
      Get the details of the log entry.
    • getTemporaryFilterIds

      public List<String> getTemporaryFilterIds()
    • getTaskState

      public @Nullable String getTaskState()
      Return the task's state associated to this log entry. This is some arbitrary value set by the task itself. It is not propagated to any ui, but a task can use this to store its current state, so when it is re-invoked after a system crash (for example) it can start from the last known state.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object