Package de.hybris.bootstrap.ddl
Class DbModelAdjuster.IndexEquivalence
java.lang.Object
com.google.common.base.Equivalence<org.apache.ddlutils.model.Index>
de.hybris.bootstrap.ddl.DbModelAdjuster.IndexEquivalence
- All Implemented Interfaces:
BiPredicate<org.apache.ddlutils.model.Index,org.apache.ddlutils.model.Index>
- Enclosing class:
- DbModelAdjuster
protected class DbModelAdjuster.IndexEquivalence
extends com.google.common.base.Equivalence<org.apache.ddlutils.model.Index>
Wrapper for Index object which overrides original equals/hashCode behavior. We want just to compare index names,
columns names and columns order.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoEquivalent(org.apache.ddlutils.model.Index one, org.apache.ddlutils.model.Index other) protected intdoHash(org.apache.ddlutils.model.Index index) booleaninthashCode()Methods inherited from class com.google.common.base.Equivalence
equals, equivalent, equivalentTo, hash, identity, onResultOf, pairwise, test, wrapMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
IndexEquivalence
protected IndexEquivalence()
-
-
Method Details
-
doEquivalent
protected boolean doEquivalent(org.apache.ddlutils.model.Index one, org.apache.ddlutils.model.Index other) - Specified by:
doEquivalentin classcom.google.common.base.Equivalence<org.apache.ddlutils.model.Index>
-
doHash
protected int doHash(org.apache.ddlutils.model.Index index) - Specified by:
doHashin classcom.google.common.base.Equivalence<org.apache.ddlutils.model.Index>
-
equals
-
hashCode
public int hashCode()
-