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 SummaryModifier 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- 
isEquivalentChecks whether the specified objects are equivalent- Parameters:
- obj1- an object of type- Equivalence
- obj2- an object of type- Equivalence
- Returns:
- true, iff both object are equivalent wrt. this equivalence notion
 
- 
isEquivalentChecks whether the specified collection of objects are pairwise equivalent- Parameters:
- objects- A collection of objects of type- Equivalence
- Returns:
- true, iff all objects are equivalent wrt. this equivalence notion
 
- 
getNameString getName()Return the name of this equivalence notion- Returns:
- name of this equivalence notion
 
 
-