Interface Equivalence<T>
- Type Parameters:
T
- Describes the type of the objects, for which the equivalence is defined
- All Known Implementing Classes:
IdentityEquivalence
,SerialisationEquivalence
,SerialisationEquivalenceByGraph
,SerialisationEquivalenceByGraphIso
,SerialisationEquivalenceByGraphNaiv
,SerialisationEquivalenceBySequence
,SerialisationEquivalenceBySequenceNaiv
,SerialisationEquivalenceByTransitionStateSequence
,SerialisationEquivalenceByTransitionStateSequenceNaiv
,StandardEquivalence
,StrongEquivalence
public interface Equivalence<T>
This interface defines methods to analyze the equivalence of two objects.
- Version:
- TweetyProject 1.23
- Author:
- Julian Sander
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEquivalent
(Collection<T> objects) Checks whether the specified objects are equivalent, in a sense that every single object is equivalent to every other object in the setboolean
isEquivalent
(T obj1, T obj2) Checks whether the specified objects are equivalent
-
Method Details
-
isEquivalent
Checks whether the specified objects are equivalent- Parameters:
obj1
- an object of the type-parameterobj2
- an object of the type-parameter- Returns:
- true if both theories are equivalent
-
isEquivalent
Checks whether the specified objects are equivalent, in a sense that every single object is equivalent to every other object in the set- Parameters:
objects
- A collection of objects of the type-parameter- Returns:
- TRUE iff all objects are equivalent
-
getDescription
String getDescription()- Returns:
- Description of the definition
-