Class TraceEquivalence

java.lang.Object
com.google.common.base.Equivalence<Trace>
kieker.analysis.architecture.trace.aggregation.TraceEquivalence
All Implemented Interfaces:
java.util.function.BiPredicate<Trace,​Trace>

public class TraceEquivalence
extends com.google.common.base.Equivalence<Trace>
This class defines an equivalence for Traces using the class Equivalence. Therefore, it provides the ability to wrap Traces with adequate equals() and hashCode() methods using its #wrap(Trace) method. With this class, two Tracess 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

    Nested classes/interfaces inherited from class com.google.common.base.Equivalence

    com.google.common.base.Equivalence.Wrapper<T extends java.lang.Object>
  • 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.BiPredicate

    and, negate, or
  • Constructor Details

  • Method Details

    • doEquivalent

      protected boolean doEquivalent​(Trace traceA, Trace traceB)
      Specified by:
      doEquivalent in class com.google.common.base.Equivalence<Trace>
    • doHash

      protected int doHash​(Trace trace)
      Specified by:
      doHash in class com.google.common.base.Equivalence<Trace>