Java org.apache.commons.lang3.builder HashCodeBuilder fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang3.builder HashCodeBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang3.builder HashCodeBuilder.

The text is from its open source code.

Subclass

org.apache.commons.lang3.builder.HashCodeBuilder has subclasses.
Click this link to see all its subclasses.

Constructor

HashCodeBuilder(final int initialOddNumber, final int multiplierOddNumber)

Two randomly chosen, odd numbers must be passed in.

HashCodeBuilder()

Uses two hard coded choices for the constants needed to build a hashCode.

Method

HashCodeBuilderappend(final boolean value)

Append a hashCode for a boolean.

HashCodeBuilderappend(final boolean[] array)

Append a hashCode for a boolean array.

HashCodeBuilderappend(final byte value)

Append a hashCode for a byte.

HashCodeBuilderappend(final byte[] array)

Append a hashCode for a byte array.

HashCodeBuilderappend(final char value)

Append a hashCode for a char.

HashCodeBuilderappend(final char[] array)

Append a hashCode for a char array.

HashCodeBuilderappend(final double value)

Append a hashCode for a double.

HashCodeBuilderappend(final double[] array)

Append a hashCode for a double array.

HashCodeBuilderappend(final float value)

Append a hashCode for a float.

HashCodeBuilderappend(final float[] array)

Append a hashCode for a float array.

HashCodeBuilderappend(final int value)

Append a hashCode for an int.

HashCodeBuilderappend(final int[] array)

Append a hashCode for an int array.

HashCodeBuilderappend(final long value)

Append a hashCode for a long.

HashCodeBuilderappend(final long[] array)

Append a hashCode for a long array.

HashCodeBuilderappend(final Object object)

Append a hashCode for an Object.

HashCodeBuilderappend(final Object[] array)

Append a hashCode for an Object array.

HashCodeBuilderappend(final short value)

Append a hashCode for a short.

HashCodeBuilderappend(final short[] array)

Append a hashCode for a short array.

HashCodeBuilderappendSuper(final int superHashCode)

Adds the result of super.hashCode() to this builder.

Integerbuild()
Returns the computed hashCode.
inthashCode()

The computed hashCode from toHashCode() is returned due to the likelihood of bugs in mis-calling toHashCode() and the unlikeliness of it mattering what the hashCode for HashCodeBuilder itself is.

intreflectionHashCode(final int initialNonZeroOddNumber, final int multiplierNonZeroOddNumber, final Object object)

Uses reflection to build a valid hash code from the fields of object .

intreflectionHashCode(final Object object, final boolean testTransients)

Uses reflection to build a valid hash code from the fields of object .

intreflectionHashCode(final Object object, final Collection excludeFields)

Uses reflection to build a valid hash code from the fields of object .

intreflectionHashCode(final Object object, final String... excludeFields)

Uses reflection to build a valid hash code from the fields of object .

intreflectionHashCode(final int initialNonZeroOddNumber, final int multiplierNonZeroOddNumber, final Object object, final boolean testTransients)

Uses reflection to build a valid hash code from the fields of object .

intreflectionHashCode(final int initialNonZeroOddNumber, final int multiplierNonZeroOddNumber, final T object, final boolean testTransients, final Class reflectUpToClass, final String... excludeFields)

Uses reflection to build a valid hash code from the fields of object .

inttoHashCode()

Return the computed hashCode.