Enum 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:
java.io.Serializable,java.lang.Comparable<AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType>,AnnotationValue.ForConstant.PropertyDelegate
- Enclosing interface:
- AnnotationValue.ForConstant.PropertyDelegate
public static enum AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType extends java.lang.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 interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
AnnotationValue.ForConstant.PropertyDelegate.ForArrayType, AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEANA property delegate for abooleanvalue.BYTEA property delegate for abytevalue.CHARACTERA property delegate for acharvalue.DOUBLEA property delegate for adoublevalue.FLOATA property delegate for afloatvalue.INTEGERA property delegate for aintvalue.LONGA property delegate for alongvalue.SHORTA property delegate for ashortvalue.STRINGA property delegate for aStringvalue.
-
Constructor Summary
Constructors Modifier Constructor Description privateForNonArrayType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <S> Scopy(S value)Copies the provided value, if it is not immutable.booleanequals(java.lang.Object self, java.lang.Object other)Determines if another value is equal to a constant annotation value.inthashCode(java.lang.Object value)Computes the value's hash code.static AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
toString
-
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType BOOLEAN
A property delegate for abooleanvalue.
-
BYTE
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType BYTE
A property delegate for abytevalue.
-
SHORT
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType SHORT
A property delegate for ashortvalue.
-
CHARACTER
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType CHARACTER
A property delegate for acharvalue.
-
INTEGER
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType INTEGER
A property delegate for aintvalue.
-
LONG
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType LONG
A property delegate for alongvalue.
-
FLOAT
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType FLOAT
A property delegate for afloatvalue.
-
DOUBLE
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType DOUBLE
A property delegate for adoublevalue.
-
STRING
public static final AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType STRING
A property delegate for aStringvalue.
-
-
Method Detail
-
values
public static AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType[] 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 (AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType c : AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType 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
-
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
public int hashCode(java.lang.Object value)
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
public boolean equals(java.lang.Object self, java.lang.Object other)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.
-
-