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
OperationCall
s using the class Equivalence
. Therefore,
it provides the ability to wrap OperationCall
s with adequate equals()
and hashCode()
methods using its #wrap(OperationCall)
method.
With this class, two OperationCall
s 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 boolean
doEquivalent(OperationCall operationCallA, OperationCall operationCallB)
protected int
doHash(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:
doEquivalent
in classcom.google.common.base.Equivalence<OperationCall>
-
doHash
- Specified by:
doHash
in classcom.google.common.base.Equivalence<OperationCall>
-