Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class AnnotationImpl.OfDoubleImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.AnnotationImpl.OfDoubleImpl
- All Implemented Interfaces:
AnnotationValue,AnnotationValue.OfConstant,AnnotationValue.OfDouble,ClassFileElement,AnnotationImpl.OfConstantImpl,WritableElement<AnnotationValue>
- Enclosing class:
AnnotationImpl
public static record AnnotationImpl.OfDoubleImpl(DoubleEntry constant)
extends Record
implements AnnotationImpl.OfConstantImpl, AnnotationValue.OfDouble
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glavo.classfile.AnnotationValue
AnnotationValue.OfAnnotation, AnnotationValue.OfArray, AnnotationValue.OfBoolean, AnnotationValue.OfByte, AnnotationValue.OfCharacter, AnnotationValue.OfClass, AnnotationValue.OfConstant, AnnotationValue.OfDouble, AnnotationValue.OfEnum, AnnotationValue.OfFloat, AnnotationValue.OfInteger, AnnotationValue.OfLong, AnnotationValue.OfShort, AnnotationValue.OfString -
Constructor Summary
ConstructorsConstructorDescriptionOfDoubleImpl(DoubleEntry constant) Creates an instance of aOfDoubleImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconstant()Returns the value of theconstantrecord component.doubleReturns the constant.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.chartag()Returns the tag character for this type as per .final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.impl.AnnotationImpl.OfConstantImpl
constantValue, writeTo
-
Constructor Details
-
OfDoubleImpl
Creates an instance of aOfDoubleImplrecord class.- Parameters:
constant- the value for theconstantrecord component
-
-
Method Details
-
tag
public char tag()Description copied from interface:AnnotationValueReturns the tag character for this type as per .- Specified by:
tagin interfaceAnnotationValue- Returns:
- the tag character for this type as per
-
doubleValue
public double doubleValue()Description copied from interface:AnnotationValue.OfDoubleReturns the constant.- Specified by:
doubleValuein interfaceAnnotationValue.OfDouble- Returns:
- the constant
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
constant
Returns the value of theconstantrecord component.- Specified by:
constantin interfaceAnnotationValue.OfConstant- Returns:
- the value of the
constantrecord component
-