@Deprecated public abstract class HashCodeBuilder extends Object
object
class.
Example for calculating the hash code for a given class:
@Override
public int hashCode() {
return object.hashCodeOf(getClass())
.and(_prop1)
.and(_prop2).value();
}
object.hashCodeOf(Class)
Modifier and Type | Field and Description |
---|---|
protected int |
_hash
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
HashCodeBuilder(Class<?> type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract HashCodeBuilder |
and(boolean value)
Deprecated.
Add hash code for a
boolean . |
abstract HashCodeBuilder |
and(boolean[] values)
Deprecated.
Add hash code for an
boolean array. |
abstract HashCodeBuilder |
and(byte value)
Deprecated.
Add hash code for a
byte . |
abstract HashCodeBuilder |
and(byte[] values)
Deprecated.
Add hash code for an
byte arrays. |
abstract HashCodeBuilder |
and(char value)
Deprecated.
Add hash code for a
char . |
abstract HashCodeBuilder |
and(char[] values)
Deprecated.
Add hash code for an
char array. |
abstract HashCodeBuilder |
and(double value)
Deprecated.
Add hash code for a
double . |
abstract HashCodeBuilder |
and(double[] values)
Deprecated.
Add hash code for an
double array. |
abstract HashCodeBuilder |
and(float value)
Deprecated.
Add hash code for a
float . |
abstract HashCodeBuilder |
and(float[] values)
Deprecated.
Add hash code for an
float array. |
abstract HashCodeBuilder |
and(int value)
Deprecated.
Add hash code for an
int . |
abstract HashCodeBuilder |
and(int[] values)
Deprecated.
Add hash code for an
int array. |
abstract HashCodeBuilder |
and(long value)
Deprecated.
Add hash code for a
long . |
abstract HashCodeBuilder |
and(long[] values)
Deprecated.
Add hash code for an
long array. |
abstract HashCodeBuilder |
and(Object value)
Deprecated.
Add hash code for a
Object . |
abstract HashCodeBuilder |
and(Object[] values)
Deprecated.
Add hash code for an
Object . |
abstract HashCodeBuilder |
and(Seq<?> values)
Deprecated.
Add hash code for a
Seq . |
abstract HashCodeBuilder |
and(short value)
Deprecated.
Add hash code for a
short . |
abstract HashCodeBuilder |
and(short[] values)
Deprecated.
Add hash code for an
short array. |
int |
value()
Deprecated.
Return the calculated hash value.
|
protected int _hash
protected HashCodeBuilder(Class<?> type)
public abstract HashCodeBuilder and(boolean value)
boolean
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(boolean[] values)
boolean
array.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(byte value)
byte
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(byte[] values)
byte
arrays.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(char value)
char
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(char[] values)
char
array.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(short value)
short
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(short[] values)
short
array.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(int value)
int
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(int[] values)
int
array.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(long value)
long
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(long[] values)
long
array.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(float value)
float
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(float[] values)
float
array.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(double value)
double
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(double[] values)
double
array.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(Object value)
Object
.value
- the value to add to the hash code.this
public abstract HashCodeBuilder and(Object[] values)
Object
.values
- the value to add to the hash code.this
public abstract HashCodeBuilder and(Seq<?> values)
Seq
.values
- the value to add to the hash code.this
public int value()
© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)