Package com.powsybl.security.comparator
Class LimitViolationEquivalence
java.lang.Object
com.google.common.base.Equivalence<LimitViolation>
com.powsybl.security.comparator.LimitViolationEquivalence
- All Implemented Interfaces:
BiPredicate<LimitViolation,
LimitViolation>
- Author:
- Massimo Ferraro <[email protected]>
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doEquivalent
(LimitViolation violation1, LimitViolation violation2) protected int
doHash
(LimitViolation violation) 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
-
LimitViolationEquivalence
public LimitViolationEquivalence(double threshold)
-
-
Method Details
-
doEquivalent
- Specified by:
doEquivalent
in classcom.google.common.base.Equivalence<LimitViolation>
-
doHash
- Specified by:
doHash
in classcom.google.common.base.Equivalence<LimitViolation>
-