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 TypeMethodDescriptiongetPrior()Gets the prior value of the tuple.Gets the updated value of the tuple.booleanChecks if a 'clear' has been performed at least once.booleanChecks if the last step performed a 'clear'.default booleanChecks if the prior and updated values are equal.
-
Method Details
-
getPrior
-
getUpdated
-
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.
-