Class JAXBHashCodeStrategy

java.lang.Object
org.jvnet.basicjaxb.lang.DefaultHashCodeStrategy
org.jvnet.basicjaxb.lang.JAXBHashCodeStrategy
All Implemented Interfaces:
HashCodeStrategy

public class JAXBHashCodeStrategy extends DefaultHashCodeStrategy
  • Constructor Details

    • JAXBHashCodeStrategy

      public JAXBHashCodeStrategy()
    • JAXBHashCodeStrategy

      public JAXBHashCodeStrategy(int multiplierNonZeroOddNumber)
  • Method Details

    • getInstance

      public static JAXBHashCodeStrategy getInstance()
    • observe

      protected int observe(String label, ObjectLocator locator, int hash)
      Observe an int hash and its locator. In TRACE mode, log the hash codes for the entire tree. In DEBUG mode, log the top level object, handle JAXBElement wrapped root.
      Overrides:
      observe in class DefaultHashCodeStrategy
      Parameters:
      label - A prefix for the observation message.
      locator - The object locator.
      hash - The hash integer.
      Returns:
      The original hash.
    • hashCodeInternal

      protected int hashCodeInternal(ObjectLocator locator, int hashCode, Object value)
      Overrides:
      hashCodeInternal in class DefaultHashCodeStrategy
    • hashCodeInternal

      protected int hashCodeInternal(ObjectLocator locator, int hashCode, jakarta.xml.bind.JAXBElement<?> element)
    • hashCodeInternal

      protected int hashCodeInternal(ObjectLocator locator, int hashCode, List<?> list)