Package io.permazen.util
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.
Implemented by classes that can generate a set of differences between themselves and other instances.
-
Method Summary
Modifier and TypeMethodDescriptiondifferencesFrom
(T other) Detect the differences of this instance when compared to the given instance.
-
Method Details
-
differencesFrom
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
- ifother
is null
-