Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.common.base.Equivalence

        com.google.common.base.Equivalence.Wrapper<T extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected IndexEquivalence()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 equals​(java.lang.Object obj)  
      int hashCode()  
      • 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 Detail

      • IndexEquivalence

        protected IndexEquivalence()
    • Method Detail

      • 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​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object