Package org.jvnet.basicjaxb.lang
Class JAXBHashCodeStrategy
java.lang.Object
org.jvnet.basicjaxb.lang.DefaultHashCodeStrategy
org.jvnet.basicjaxb.lang.JAXBHashCodeStrategy
- All Implemented Interfaces:
HashCodeStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JAXBHashCodeStrategyprotected inthashCodeInternal(ObjectLocator locator, int hashCode, jakarta.xml.bind.JAXBElement<?> element) protected inthashCodeInternal(ObjectLocator locator, int hashCode, Object value) protected inthashCodeInternal(ObjectLocator locator, int hashCode, List<?> list) protected intobserve(String label, ObjectLocator locator, int hash) Observe an int hash and its locator.Methods inherited from class org.jvnet.basicjaxb.lang.DefaultHashCodeStrategy
buildMessage, debug, getLogger, 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, isDebugEnabled, isTraceEnabled, observe, trace
-
Constructor Details
-
JAXBHashCodeStrategy
public JAXBHashCodeStrategy() -
JAXBHashCodeStrategy
public JAXBHashCodeStrategy(int multiplierNonZeroOddNumber)
-
-
Method Details
-
getInstance
-
observe
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:
observein classDefaultHashCodeStrategy- Parameters:
label- A prefix for the observation message.locator- The object locator.hash- The hash integer.- Returns:
- The original hash.
-
hashCodeInternal
- Overrides:
hashCodeInternalin classDefaultHashCodeStrategy
-
hashCodeInternal
protected int hashCodeInternal(ObjectLocator locator, int hashCode, jakarta.xml.bind.JAXBElement<?> element) -
hashCodeInternal
-