Class OperationCallEquivalence
java.lang.Object
com.google.common.base.Equivalence<OperationCall>
kieker.analysis.architecture.trace.aggregation.OperationCallEquivalence
- All Implemented Interfaces:
java.util.function.BiPredicate<OperationCall,OperationCall>
public class OperationCallEquivalence extends com.google.common.base.Equivalence<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
-
Constructor Summary
Constructors Constructor Description OperationCallEquivalence(boolean considerFailed) -
Method Summary
Modifier and Type Method Description protected 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, wrap
-
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>
-