Class TraceEquivalence
java.lang.Object
com.google.common.base.Equivalence<Trace>
kieker.analysis.architecture.trace.aggregation.TraceEquivalence
public class TraceEquivalence extends com.google.common.base.Equivalence<Trace>
This class defines an equivalence for
Trace
s using the class Equivalence
. Therefore,
it provides the ability to wrap Trace
s with adequate equals()
and hashCode()
methods using its #wrap(Trace)
method.
With this class, two Traces
s are considered equal iff both the root OperationCall
are
considered equal using the OperationCallEquivalence
or a specified Equivalence
.- Since:
- 1.14
- Author:
- Sören Henning
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description TraceEquivalence(boolean considerFailed)
TraceEquivalence(com.google.common.base.Equivalence<OperationCall> operationCallEquivalence)
-
Method Summary
Modifier and Type Method Description protected boolean
doEquivalent(Trace traceA, Trace traceB)
protected int
doHash(Trace trace)
Methods inherited from class com.google.common.base.Equivalence
equals, equivalent, equivalentTo, hash, identity, onResultOf, pairwise, test, wrap
-
Constructor Details
-
TraceEquivalence
public TraceEquivalence(boolean considerFailed) -
TraceEquivalence
public TraceEquivalence(com.google.common.base.Equivalence<OperationCall> operationCallEquivalence)
-
-
Method Details
-
doEquivalent
- Specified by:
doEquivalent
in classcom.google.common.base.Equivalence<Trace>
-
doHash
- Specified by:
doHash
in classcom.google.common.base.Equivalence<Trace>
-