Package org.jvnet.basicjaxb.lang
Class DefaultHashCodeStrategy
java.lang.Object
org.jvnet.basicjaxb.lang.DefaultHashCodeStrategy
- All Implemented Interfaces:
HashCodeStrategy
- Direct Known Subclasses:
JAXBHashCodeStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildMessage(String label, ObjectLocator locator, String value) voidSubclasses can override this method to log the debug message, as desired.static DefaultHashCodeStrategyorg.slf4j.Loggerprotected inthashCode(ObjectLocator locator, int hashCode, boolean value) protected inthashCode(ObjectLocator locator, int hashCode, boolean[] value) inthashCode(ObjectLocator locator, int hashCode, boolean[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, boolean value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, byte value) protected inthashCode(ObjectLocator locator, int hashCode, byte[] value) inthashCode(ObjectLocator locator, int hashCode, byte[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, byte value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, char value) protected inthashCode(ObjectLocator locator, int hashCode, char[] value) inthashCode(ObjectLocator locator, int hashCode, char[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, char value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, double value) protected inthashCode(ObjectLocator locator, int hashCode, double[] value) inthashCode(ObjectLocator locator, int hashCode, double[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, double value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, float value) protected inthashCode(ObjectLocator locator, int hashCode, float[] value) inthashCode(ObjectLocator locator, int hashCode, float[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, float value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, int value) protected inthashCode(ObjectLocator locator, int hashCode, int[] value) inthashCode(ObjectLocator locator, int hashCode, int[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, int value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, long value) protected inthashCode(ObjectLocator locator, int hashCode, long[] value) inthashCode(ObjectLocator locator, int hashCode, long[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, long value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, short value) protected inthashCode(ObjectLocator locator, int hashCode, short[] value) inthashCode(ObjectLocator locator, int hashCode, short[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, short value, boolean valueSet) protected inthashCode(ObjectLocator locator, int hashCode, Object object) protected inthashCode(ObjectLocator locator, int hashCode, Object[] value) inthashCode(ObjectLocator locator, int hashCode, Object[] value, boolean valueSet) inthashCode(ObjectLocator locator, int hashCode, Object value, boolean valueSet) protected inthashCodeInternal(ObjectLocator locator, int hashCode, Enum<?> value) protected inthashCodeInternal(ObjectLocator locator, int hashCode, Enum<?>[] value) protected inthashCodeInternal(ObjectLocator locator, int hashCode, Object value) protected inthashCodeInternal(ObjectLocator locator, int hashCode, HashCode object) protected inthashCodeInternal(ObjectLocator locator, int hashCode, HashCode[] value) booleanbooleanprotected intobserve(String label, ObjectLocator locator, int hash) Observe an int hash and its locator.protected intobserve(ObjectLocator locator, int hash) Observe an int hash and its locator.voidSubclasses can override this method to log the trace message, as desired.
-
Constructor Details
-
DefaultHashCodeStrategy
public DefaultHashCodeStrategy() -
DefaultHashCodeStrategy
public DefaultHashCodeStrategy(int multiplierNonZeroOddNumber)
-
-
Method Details
-
getInstance
-
getLogger
public org.slf4j.Logger getLogger()- Specified by:
getLoggerin interfaceHashCodeStrategy
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceHashCodeStrategy
-
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabledin interfaceHashCodeStrategy
-
debug
Subclasses can override this method to log the debug message, as desired.- Parameters:
message- The debug message of copied values.
-
trace
Subclasses can override this method to log the trace message, as desired.- Parameters:
message- The trace message of copied values.
-
observe
Observe an int hash and its locator.- Parameters:
locator- The object locator.hash- The object.- Returns:
- The original object.
-
observe
Observe an int hash and its locator.- Parameters:
label- A prefix for the observation message.locator- The object locator.hash- The hash integer.- Returns:
- The original hash.
-
buildMessage
-
hashCode
-
hashCodeInternal
-
hashCodeInternal
-
hashCodeInternal
-
hashCode
-
hashCodeInternal
-
hashCodeInternal
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-
hashCode
- Specified by:
hashCodein interfaceHashCodeStrategy
-