protected static enum HashCodeMethod.ValueTransformer extends Enum<HashCodeMethod.ValueTransformer> implements StackManipulation
int
value.StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial
Enum Constant and Description |
---|
BOOLEAN_ARRAY
A transformer for a
boolean[] value. |
BYTE_ARRAY
A transformer for a
byte[] value. |
CHARACTER_ARRAY
A transformer for a
char[] value. |
DOUBLE
A transformer for a
double value. |
DOUBLE_ARRAY
A transformer for a
double[] value. |
FLOAT
A transformer for a
float value. |
FLOAT_ARRAY
A transformer for a
float[] value. |
INTEGER_ARRAY
A transformer for an
int[] value. |
LONG
A transformer for a
long value. |
LONG_ARRAY
A transformer for a
long[] value. |
NESTED_ARRAY
A transformer for a nested reference array value.
|
REFERENCE_ARRAY
A transformer for a reference array value.
|
REFERENCE_IDENTITY
A transformer for computing the identity hash code for a reference.
|
SHORT_ARRAY
A transformer for a
short[] value. |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid()
Determines if this stack manipulation is valid.
|
static StackManipulation |
of(TypeDefinition typeDefinition)
Resolves a type definition to a hash code.
|
static HashCodeMethod.ValueTransformer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashCodeMethod.ValueTransformer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
apply
public static final HashCodeMethod.ValueTransformer LONG
long
value.public static final HashCodeMethod.ValueTransformer FLOAT
float
value.public static final HashCodeMethod.ValueTransformer DOUBLE
double
value.public static final HashCodeMethod.ValueTransformer BOOLEAN_ARRAY
boolean[]
value.public static final HashCodeMethod.ValueTransformer BYTE_ARRAY
byte[]
value.public static final HashCodeMethod.ValueTransformer SHORT_ARRAY
short[]
value.public static final HashCodeMethod.ValueTransformer CHARACTER_ARRAY
char[]
value.public static final HashCodeMethod.ValueTransformer INTEGER_ARRAY
int[]
value.public static final HashCodeMethod.ValueTransformer LONG_ARRAY
long[]
value.public static final HashCodeMethod.ValueTransformer FLOAT_ARRAY
float[]
value.public static final HashCodeMethod.ValueTransformer DOUBLE_ARRAY
double[]
value.public static final HashCodeMethod.ValueTransformer REFERENCE_ARRAY
public static final HashCodeMethod.ValueTransformer NESTED_ARRAY
public static final HashCodeMethod.ValueTransformer REFERENCE_IDENTITY
public static HashCodeMethod.ValueTransformer[] values()
for (HashCodeMethod.ValueTransformer c : HashCodeMethod.ValueTransformer.values()) System.out.println(c);
public static HashCodeMethod.ValueTransformer valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static StackManipulation of(TypeDefinition typeDefinition)
typeDefinition
- The type definition to resolve.public boolean isValid()
isValid
in interface StackManipulation
false
, this manipulation cannot be applied and should throw an exception.Copyright © 2014–2024. All rights reserved.