Class ModelChanges

java.lang.Object
ai.vectros.types.ModelChanges

public final class ModelChanges extends Object
  • Method Details

    • getSummary

      public Optional<String> getSummary()
      Returns:
      Human-readable summary of the change, e.g. "Changed: firstName, email".
    • getFields

      public Optional<List<String>> getFields()
      Returns:
      Names of the fields that changed.
    • getCount

      public Optional<Integer> getCount()
      Returns:
      Number of fields that changed.
    • getDetails

      public Optional<Map<String,ChangedField>> getDetails()
      Returns:
      Per-field before/after values, keyed by field name.
    • getError

      public Optional<String> getError()
      Returns:
      Error message if the diff could not be computed; null on success.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ModelChanges.Builder builder()