org.jvnet.jaxb2_commons.lang
Class DefaultHashCodeStrategy

java.lang.Object
  extended by org.jvnet.jaxb2_commons.lang.DefaultHashCodeStrategy
All Implemented Interfaces:
HashCodeStrategy
Direct Known Subclasses:
JAXBHashCodeStrategy

public class DefaultHashCodeStrategy
extends Object
implements HashCodeStrategy


Field Summary
static HashCodeStrategy INSTANCE
           
 
Constructor Summary
DefaultHashCodeStrategy()
           
DefaultHashCodeStrategy(int multiplierNonZeroOddNumber)
           
 
Method Summary
 int hashCode(ObjectLocator locator, int hashCode, boolean value)
           
 int hashCode(ObjectLocator locator, int hashCode, boolean[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, byte value)
           
 int hashCode(ObjectLocator locator, int hashCode, byte[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, char value)
           
 int hashCode(ObjectLocator locator, int hashCode, char[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, double value)
           
 int hashCode(ObjectLocator locator, int hashCode, double[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, float value)
           
 int hashCode(ObjectLocator locator, int hashCode, float[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, int value)
           
 int hashCode(ObjectLocator locator, int hashCode, int[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, long value)
           
 int hashCode(ObjectLocator locator, int hashCode, long[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, Object object)
           
 int hashCode(ObjectLocator locator, int hashCode, Object[] value)
           
 int hashCode(ObjectLocator locator, int hashCode, short value)
           
 int hashCode(ObjectLocator locator, int hashCode, short[] value)
           
protected  int hashCodeInternal(ObjectLocator locator, int hashCode, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final HashCodeStrategy INSTANCE
Constructor Detail

DefaultHashCodeStrategy

public DefaultHashCodeStrategy()

DefaultHashCodeStrategy

public DefaultHashCodeStrategy(int multiplierNonZeroOddNumber)
Method Detail

hashCodeInternal

protected int hashCodeInternal(ObjectLocator locator,
                               int hashCode,
                               Object value)

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    Object object)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    Object[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    boolean value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    byte value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    char value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    double value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    float value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    int value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    long value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    short value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    boolean[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    byte[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    char[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    double[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    float[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    int[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    long[] value)
Specified by:
hashCode in interface HashCodeStrategy

hashCode

public int hashCode(ObjectLocator locator,
                    int hashCode,
                    short[] value)
Specified by:
hashCode in interface HashCodeStrategy


Copyright © 2005-2012. All Rights Reserved.