Interface TrieLog.LogTuple<T>

Type Parameters:
T - the type of values stored in the log tuple
Enclosing interface:
TrieLog

public static interface TrieLog.LogTuple<T>
An interface representing a tuple of prior and updated values for a specific type T in a log. The interface also provides methods to check if the values are unchanged or cleared.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the prior value of the tuple.
    Gets the updated value of the tuple.
    boolean
    Checks if a 'clear' has been performed at least once.
    boolean
    Checks if the last step performed a 'clear'.
    default boolean
    Checks if the prior and updated values are equal.
  • Method Details

    • getPrior

      T getPrior()
      Gets the prior value of the tuple.
      Returns:
      the prior value of type T
    • getUpdated

      T getUpdated()
      Gets the updated value of the tuple.
      Returns:
      the updated value of type T
    • isUnchanged

      default boolean isUnchanged()
      Checks if the prior and updated values are equal.
      Returns:
      true if the prior and updated values are equal, false otherwise
    • isLastStepCleared

      boolean isLastStepCleared()
      Checks if the last step performed a 'clear'.
      Returns:
      true if the last step performed a 'clear', false otherwise.
    • isClearedAtLeastOnce

      boolean isClearedAtLeastOnce()
      Checks if a 'clear' has been performed at least once.
      Returns:
      true if a 'clear' has been performed at least once, false otherwise.