Interface DiffGenerating<T>

Type Parameters:
T - the type being compared
All Known Implementing Classes:
AbstractEnumSchemaField, EnumArraySchemaField, EnumSchemaField, ListSchemaField, MapSchemaField, ReferenceSchemaField, SchemaCompositeIndex, SchemaModel, SchemaObjectType, SetSchemaField, SimpleSchemaField
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DiffGenerating<T>
Implemented by classes that can generate a set of differences between themselves and other instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Detect the differences of this instance when compared to the given instance.
  • Method Details

    • differencesFrom

      Diffs differencesFrom(T other)
      Detect the differences of this instance when compared to the given instance.
      Parameters:
      other - other instance
      Returns:
      differences; will be empty if there are none detected
      Throws:
      IllegalArgumentException - if other is null