Class TotpStoreWrite.Mutation
java.lang.Object
com.revetsec.totp.TotpStoreWrite.Mutation
- Enclosing class:
TotpStoreWrite
An insertion or replacement of one permanent record.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPermanent insertion or replacement; deletion is deliberately unavailable. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Returns the changed address.getKind()Returns the mutation kind.Returns the immutable replacement record.static @NonNull TotpStoreWrite.Mutationinsert(@NonNull TotpStoreRecord record) Inserts only after a matching confirmed absence predicate.static @NonNull TotpStoreWrite.Mutationreplace(@NonNull TotpStoreRecord record) Replaces only after a matching exact version predicate.toString()Redacts the record.
-
Method Details
-
insert
Inserts only after a matching confirmed absence predicate.- Parameters:
record- the new record- Returns:
- the insertion
- Since:
- 1.0.0
-
replace
Replaces only after a matching exact version predicate.- Parameters:
record- the replacement with a fresh non-reused version- Returns:
- the replacement
- Since:
- 1.0.0
-
getKey
Returns the changed address.- Returns:
- the address
- Since:
- 1.0.0
-
getRecord
Returns the immutable replacement record.- Returns:
- the record
- Since:
- 1.0.0
-
getKind
Returns the mutation kind.- Returns:
- the kind
- Since:
- 1.0.0
-
toString
-