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
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    doEquivalent(org.apache.ddlutils.model.Index one, org.apache.ddlutils.model.Index other)
     
    protected int
    doHash(org.apache.ddlutils.model.Index index)
     
    boolean
     
    int
     

    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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      doEquivalent in class com.google.common.base.Equivalence<org.apache.ddlutils.model.Index>
    • doHash

      protected int doHash(org.apache.ddlutils.model.Index index)
      Specified by:
      doHash in class com.google.common.base.Equivalence<org.apache.ddlutils.model.Index>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object