Enum Class AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
java.lang.Object
java.lang.Enum<AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType>
net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
- All Implemented Interfaces:
Serializable,Comparable<AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType>,Constable,AnnotationValue.ForConstant.PropertyDelegate
- Enclosing interface:
AnnotationValue.ForConstant.PropertyDelegate
public static enum AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
extends Enum<AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType>
implements AnnotationValue.ForConstant.PropertyDelegate
A property delegate for a non-array type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
AnnotationValue.ForConstant.PropertyDelegate.ForArrayType, AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA property delegate for abooleanvalue.A property delegate for abytevalue.A property delegate for acharvalue.A property delegate for adoublevalue.A property delegate for afloatvalue.A property delegate for aintvalue.A property delegate for alongvalue.A property delegate for ashortvalue.A property delegate for aStringvalue. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S> Scopy(S value) Copies the provided value, if it is not immutable.booleanDetermines if another value is equal to a constant annotation value.intComputes the value's hash code.Returns 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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
toString
-
Enum Constant Details
-
BOOLEAN
A property delegate for abooleanvalue. -
BYTE
A property delegate for abytevalue. -
SHORT
A property delegate for ashortvalue. -
CHARACTER
A property delegate for acharvalue. -
INTEGER
A property delegate for aintvalue. -
LONG
A property delegate for alongvalue. -
FLOAT
A property delegate for afloatvalue. -
DOUBLE
A property delegate for adoublevalue. -
STRING
A property delegate for aStringvalue.
-
-
Constructor Details
-
ForNonArrayType
private ForNonArrayType()
-
-
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
-
copy
public <S> S copy(S value) Copies the provided value, if it is not immutable.- Specified by:
copyin interfaceAnnotationValue.ForConstant.PropertyDelegate- Type Parameters:
S- The value's type.- Parameters:
value- The value to copy.- Returns:
- A copy of the provided instance or the provided value, if it is immutable.
-
hashCode
Computes the value's hash code.- Specified by:
hashCodein interfaceAnnotationValue.ForConstant.PropertyDelegate- Parameters:
value- The value for which to compute the hash code.- Returns:
- The hash code of the provided value.
-
equals
Determines if another value is equal to a constant annotation value.- Specified by:
equalsin interfaceAnnotationValue.ForConstant.PropertyDelegate- Parameters:
self- The value that is represented as a constant annotation value.other- Any other value for which to determine equality.- Returns:
trueif the provided value is equal to the represented value.
-