Package uk.megaslice.delta
Interface Equivalence<T>
-
- Type Parameters:
T- the type of the dataset item
- 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 Equivalence<T>
A function to determine whether two dataset items are equivalent.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> Equivalence<T>defaultEquivalence()Returns a default item equivalence function usingObject.equals(java.lang.Object)booleanisEquivalent(T left, T right)Returns true if two given dataset items are equivalent, false otherwise.
-
-
-
Method Detail
-
defaultEquivalence
static <T> Equivalence<T> defaultEquivalence()
Returns a default item equivalence function usingObject.equals(java.lang.Object)- Type Parameters:
T- the type of the dataset item- Returns:
- a default item equivalence function
-
-