- All Superinterfaces:
 AnnotationValuePREVIEW,AnnotationValue.OfConstantPREVIEW,ClassFileElementPREVIEW,WritableElementPREVIEW<AnnotationValuePREVIEW>
- Enclosing interface:
 AnnotationValuePREVIEW
OfInteger is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a constant-valued element
- Since:
 - 22
 
- 
Nested Class Summary
Nested classes/interfaces declared in interface java.lang.classfile.AnnotationValuePREVIEW
AnnotationValue.OfAnnotationPREVIEW, AnnotationValue.OfArrayPREVIEW, AnnotationValue.OfBooleanPREVIEW, AnnotationValue.OfBytePREVIEW, AnnotationValue.OfCharacterPREVIEW, AnnotationValue.OfClassPREVIEW, AnnotationValue.OfConstantPREVIEW, AnnotationValue.OfDoublePREVIEW, AnnotationValue.OfEnumPREVIEW, AnnotationValue.OfFloatPREVIEW, AnnotationValue.OfIntegerPREVIEW, AnnotationValue.OfLongPREVIEW, AnnotationValue.OfShortPREVIEW, AnnotationValue.OfStringPREVIEW - 
Method Summary
Methods declared in interface java.lang.classfile.AnnotationValuePREVIEW
tagMethods declared in interface java.lang.classfile.AnnotationValue.OfConstantPREVIEW
constant, constantValueMethods declared in interface java.lang.classfile.WritableElementPREVIEW
writeTo 
- 
Method Details
- 
intValue
int intValue()Returns the constant.- Returns:
 - the constant
 
 
 - 
 
OfIntegerwhen preview features are enabled.