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:
java.util.function.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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIndexEquivalence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoEquivalent(org.apache.ddlutils.model.Index one, org.apache.ddlutils.model.Index other)protected intdoHash(org.apache.ddlutils.model.Index index)booleanequals(java.lang.Object obj)inthashCode()-
Methods inherited from class com.google.common.base.Equivalence
equals, equivalent, equivalentTo, hash, identity, onResultOf, pairwise, test, wrap
-
-
-
-
Method Detail
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-