Record Class CaptureReadiness
java.lang.Object
java.lang.Record
com.shaft.capture.model.CaptureReadiness
- Record Components:
state- highest observed readiness statewarnings- actionable readiness warnings
Deterministic live readiness summary for a Capture session.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCaptureReadiness(CaptureReadiness.State state, List<String> warnings) Creates an immutable readiness summary. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static CaptureReadinessfrom(CaptureSession session) Calculates readiness from persisted session evidence.static CaptureReadinessfrom(CaptureSession session, List<String> collectorWarnings) Calculates readiness from persisted session evidence and live collector warnings.final inthashCode()Returns a hash code value for this object.static CaptureReadinessready()Returns a clean readiness summary.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
CaptureReadiness
Creates an immutable readiness summary.
-
-
Method Details
-
ready
-
from
Calculates readiness from persisted session evidence.- Parameters:
session- source Capture session- Returns:
- readiness summary
-
from
Calculates readiness from persisted session evidence and live collector warnings.- Parameters:
session- source Capture sessioncollectorWarnings- live recorder warnings- Returns:
- readiness summary
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
state
-
warnings
-