Interface Action

All Superinterfaces:
Comparable<Action>

public interface Action extends Comparable<Action>
Represents a logged action.
  • Method Details

    • builder

      static @NonNull Action.Builder builder()
      Returns:
      a new builder
    • getTimestamp

      @NonNull Instant getTimestamp()
      Gets the time when the action occurred.
      Returns:
      the timestamp
    • getSource

      @NonNull Action.Source getSource()
      Gets the source of the action.
      Returns:
      the source
    • getTarget

      @NonNull Action.Target getTarget()
      Gets the target of the action.
      Returns:
      the target
    • getDescription

      @NonNull String getDescription()
      Returns a string describing the action which took place.

      In most instances, this returns a variation of the command string which caused the change.

      Returns:
      the action