Interface Equivalence<T>
- Type Parameters:
T- The Type of object for which the equivalence is defined
- All Known Implementing Classes:
IdentityEquivalence,NormalExpansionEquivalence,SerialisationEquivalence,StandardEquivalence,StrongEquivalence,StrongExpansionEquivalence
public interface Equivalence<T>
This interface defines methods for equivalence notions.
- Author:
- Julian Sander
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Return the name of this equivalence notionbooleanisEquivalent(Collection<T> objects) Checks whether the specified collection of objects are pairwise equivalentbooleanisEquivalent(T obj1, T obj2) Checks whether the specified objects are equivalent
-
Method Details
-
isEquivalent
-
isEquivalent
Checks whether the specified collection of objects are pairwise equivalent- Parameters:
objects- A collection of objects of typeT- Returns:
- true, iff all objects are equivalent wrt. this equivalence notion
-
getName
String getName()Return the name of this equivalence notion- Returns:
- name of this equivalence notion
-