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 head
modelType - stored logical Model type, null for an absent head
localModelType - local class name, or null when absent/unknown
headPresent - distinguishes an absent Model from an unknown local type
historyComplete - storage's retained-history declaration
eventsComplete - whether the sample contains every sequence from zero through this head
observedTypes - 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 Details

    • ModelContract

      public ModelContract(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 Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • requestedId

      public String requestedId()
      Returns the value of the requestedId record component.
      Returns:
      the value of the requestedId record component
    • modelId

      public String modelId()
      Returns the value of the modelId record component.
      Returns:
      the value of the modelId record component
    • modelType

      public String modelType()
      Returns the value of the modelType record component.
      Returns:
      the value of the modelType record component
    • localModelType

      public String localModelType()
      Returns the value of the localModelType record component.
      Returns:
      the value of the localModelType record component
    • headPresent

      public boolean headPresent()
      Returns the value of the headPresent record component.
      Returns:
      the value of the headPresent record component
    • historyComplete

      public boolean historyComplete()
      Returns the value of the historyComplete record component.
      Returns:
      the value of the historyComplete record component
    • eventsComplete

      public boolean eventsComplete()
      Returns the value of the eventsComplete record component.
      Returns:
      the value of the eventsComplete record component
    • observedTypes

      public List<ModelDiagnostics.ObservedType> observedTypes()
      Returns the value of the observedTypes record component.
      Returns:
      the value of the observedTypes record component