Class OperationCallEquivalence
java.lang.Object
com.google.common.base.Equivalence<OperationCall>
kieker.analysis.architecture.trace.aggregation.OperationCallEquivalence
- All Implemented Interfaces:
BiPredicate<OperationCall,OperationCall>
This class defines an equivalence for
OperationCalls using the class Equivalence. Therefore,
it provides the ability to wrap OperationCalls with adequate equals() and hashCode()
methods using its #wrap(OperationCall) method.
With this class, two OperationCalls are considered equal iff both belong to the same
DeployedOperation, their children are also considered equal (in the same order) and - optionally -
have the same failed cause.- Since:
- 1.14
- Author:
- Sören Henning
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.base.Equivalence
com.google.common.base.Equivalence.Wrapper<T extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoEquivalent(OperationCall operationCallA, OperationCall operationCallB) protected intdoHash(OperationCall operationCall) Methods inherited from class com.google.common.base.Equivalence
equals, equivalent, equivalentTo, hash, identity, onResultOf, pairwise, test, wrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
OperationCallEquivalence
public OperationCallEquivalence(boolean considerFailed)
-
-
Method Details
-
doEquivalent
- Specified by:
doEquivalentin classcom.google.common.base.Equivalence<OperationCall>
-
doHash
- Specified by:
doHashin classcom.google.common.base.Equivalence<OperationCall>
-