Record Class ModelDiagnostics.ModelContract
java.lang.Object
java.lang.Record
io.fluxzero.sdk.persisting.repository.ModelDiagnostics.ModelContract
- Record Components:
requestedId- stream identity requested from storage (may be an alias)modelId- canonical identity, or requestedId for an absent headmodelType- stored logical Model type, null for an absent headlocalModelType- local class name, or null when absent/unknownheadPresent- distinguishes an absent Model from an unknown local typehistoryComplete- storage's retained-history declarationeventsComplete- whether the sample contains every sequence from zero through this headobservedTypes- distinct serialized type/revision/format tuples encountered in this first page
- Enclosing class:
ModelDiagnostics
public static record ModelDiagnostics.ModelContract(String requestedId, String modelId, String modelType, String localModelType, boolean headPresent, boolean historyComplete, boolean eventsComplete, List<ModelDiagnostics.ObservedType> observedTypes)
extends Record
One sampled stream. A null localModelType means that no local Model contract was found.
-
Constructor Summary
ConstructorsConstructorDescriptionModelContract(String requestedId, String modelId, String modelType, String localModelType, boolean headPresent, boolean historyComplete, boolean eventsComplete, List<ModelDiagnostics.ObservedType> observedTypes) Copies the bounded report metadata; no payload objects are retained. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theeventsCompleterecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theheadPresentrecord component.booleanReturns the value of thehistoryCompleterecord component.Returns the value of thelocalModelTyperecord component.modelId()Returns the value of themodelIdrecord component.Returns the value of themodelTyperecord component.Returns the value of theobservedTypesrecord component.Returns the value of therequestedIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelContract
-
-
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. -
requestedId
Returns the value of therequestedIdrecord component.- Returns:
- the value of the
requestedIdrecord component
-
modelId
-
modelType
-
localModelType
Returns the value of thelocalModelTyperecord component.- Returns:
- the value of the
localModelTyperecord component
-
headPresent
public boolean headPresent()Returns the value of theheadPresentrecord component.- Returns:
- the value of the
headPresentrecord component
-
historyComplete
public boolean historyComplete()Returns the value of thehistoryCompleterecord component.- Returns:
- the value of the
historyCompleterecord component
-
eventsComplete
public boolean eventsComplete()Returns the value of theeventsCompleterecord component.- Returns:
- the value of the
eventsCompleterecord component
-
observedTypes
Returns the value of theobservedTypesrecord component.- Returns:
- the value of the
observedTypesrecord component
-