Package net.bytebuddy.build
Enum Class HashCodeAndEqualsPlugin.ValueHandling.Sort
java.lang.Object
java.lang.Enum<HashCodeAndEqualsPlugin.ValueHandling.Sort>
net.bytebuddy.build.HashCodeAndEqualsPlugin.ValueHandling.Sort
- All Implemented Interfaces:
Serializable
,Comparable<HashCodeAndEqualsPlugin.ValueHandling.Sort>
,Constable
- Enclosing class:
- HashCodeAndEqualsPlugin.ValueHandling
public static enum HashCodeAndEqualsPlugin.ValueHandling.Sort
extends Enum<HashCodeAndEqualsPlugin.ValueHandling.Sort>
Determines how a field should be handled.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExcludes the field from hash code and equality methods.Reverses the nullability of the field, i.e. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
Excludes the field from hash code and equality methods. -
REVERSE_NULLABILITY
Reverses the nullability of the field, i.e. assumes this field to be non-null ornull
ifHashCodeAndEqualsPlugin.WithNonNullableFields
is used.
-
-
Constructor Details
-
Sort
private Sort()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-