Class DomAwareHashCodeStrategy

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.HashCodeStrategy, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2

    public class DomAwareHashCodeStrategy
    extends org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy
    Strategy for hashCode() methods used in JAXB generated code. The strategy is just returning a constant. This makes the hashing somehow less efficient if the JAXB objects differ just in the DOM parts. This this is quite unlikely under usual circumstances. However the main reason for this is to avoid namespace-related problems.
    Author:
    Radovan Semancik
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.jvnet.jaxb2_commons.lang.HashCodeStrategy INSTANCE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int hashCodeInternal​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, int hashCode, Object value)  
      • Methods inherited from class org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy

        hashCodeInternal, hashCodeInternal
      • Methods inherited from class org.jvnet.jaxb2_commons.lang.DefaultHashCodeStrategy

        hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCodeInternal, hashCodeInternal, hashCodeInternal, hashCodeInternal, hashCodeInternal, hashCodeInternal
    • Field Detail

      • INSTANCE

        public static final org.jvnet.jaxb2_commons.lang.HashCodeStrategy INSTANCE
    • Constructor Detail

      • DomAwareHashCodeStrategy

        public DomAwareHashCodeStrategy()
    • Method Detail

      • hashCodeInternal

        protected int hashCodeInternal​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                       int hashCode,
                                       Object value)
        Overrides:
        hashCodeInternal in class org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy