Package com.powsybl.security.comparator
Class SecurityAnalysisResultEquivalence
- java.lang.Object
-
- com.google.common.base.Equivalence<SecurityAnalysisResult>
-
- com.powsybl.security.comparator.SecurityAnalysisResultEquivalence
-
- All Implemented Interfaces:
BiPredicate<SecurityAnalysisResult,SecurityAnalysisResult>
public class SecurityAnalysisResultEquivalence extends com.google.common.base.Equivalence<SecurityAnalysisResult>
- Author:
- Massimo Ferraro
-
-
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 Constructor Description SecurityAnalysisResultEquivalence(double threshold, Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doEquivalent(SecurityAnalysisResult result1, SecurityAnalysisResult result2)
protected int
doHash(SecurityAnalysisResult result)
-
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 Detail
-
SecurityAnalysisResultEquivalence
public SecurityAnalysisResultEquivalence(double threshold, Writer writer)
-
-
Method Detail
-
doEquivalent
protected boolean doEquivalent(SecurityAnalysisResult result1, SecurityAnalysisResult result2)
- Specified by:
doEquivalent
in classcom.google.common.base.Equivalence<SecurityAnalysisResult>
-
doHash
protected int doHash(SecurityAnalysisResult result)
- Specified by:
doHash
in classcom.google.common.base.Equivalence<SecurityAnalysisResult>
-
-