Package net.bytebuddy.implementation
Enum HashCodeMethod.NullValueGuard.NoOp
- java.lang.Object
-
- java.lang.Enum<HashCodeMethod.NullValueGuard.NoOp>
-
- net.bytebuddy.implementation.HashCodeMethod.NullValueGuard.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HashCodeMethod.NullValueGuard.NoOp>
,HashCodeMethod.NullValueGuard
- Enclosing interface:
- HashCodeMethod.NullValueGuard
public static enum HashCodeMethod.NullValueGuard.NoOp extends java.lang.Enum<HashCodeMethod.NullValueGuard.NoOp> implements HashCodeMethod.NullValueGuard
A non-operational null value guard.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.HashCodeMethod.NullValueGuard
HashCodeMethod.NullValueGuard.NoOp, HashCodeMethod.NullValueGuard.UsingJump
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StackManipulation
after()
Returns a stack manipulation to apply after computing a hash value.StackManipulation
before()
Returns a stack manipulation to apply before computing a hash value.int
getRequiredVariablePadding()
Returns the required padding for the local variable array to apply this guard.static HashCodeMethod.NullValueGuard.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HashCodeMethod.NullValueGuard.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final HashCodeMethod.NullValueGuard.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static HashCodeMethod.NullValueGuard.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HashCodeMethod.NullValueGuard.NoOp c : HashCodeMethod.NullValueGuard.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HashCodeMethod.NullValueGuard.NoOp valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
before
public StackManipulation before()
Returns a stack manipulation to apply before computing a hash value.- Specified by:
before
in interfaceHashCodeMethod.NullValueGuard
- Returns:
- A stack manipulation to apply before computing a hash value.
-
after
public StackManipulation after()
Returns a stack manipulation to apply after computing a hash value.- Specified by:
after
in interfaceHashCodeMethod.NullValueGuard
- Returns:
- A stack manipulation to apply after computing a hash value.
-
getRequiredVariablePadding
public int getRequiredVariablePadding()
Returns the required padding for the local variable array to apply this guard.- Specified by:
getRequiredVariablePadding
in interfaceHashCodeMethod.NullValueGuard
- Returns:
- The required padding for the local variable array to apply this guard.
-
-