Record Class Checkpoint
java.lang.Object
java.lang.Record
com.shaft.capture.model.Checkpoint
- Record Components:
id- stable checkpoint identifiersequence- related event sequencetimestamp- checkpoint timestampkind- checkpoint kinddescription- reviewer-facing description
public record Checkpoint(String id, long sequence, Instant timestamp, Checkpoint.CheckpointKind kind, String description)
extends Record
Human-review checkpoint in a capture session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSupported checkpoint kinds. -
Constructor Summary
ConstructorsConstructorDescriptionCheckpoint(String id, long sequence, Instant timestamp, Checkpoint.CheckpointKind kind, String description) Creates an immutable checkpoint. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.longsequence()Returns the value of thesequencerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Checkpoint
public Checkpoint(String id, long sequence, Instant timestamp, Checkpoint.CheckpointKind kind, String description) Creates an immutable checkpoint.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
sequence
-
timestamp
-
kind
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-