Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class TargetInfoImpl.EmptyTargetImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.TargetInfoImpl.EmptyTargetImpl
- All Implemented Interfaces:
TypeAnnotation.EmptyTarget,TypeAnnotation.TargetInfo
- Enclosing class:
TargetInfoImpl
public static record TargetInfoImpl.EmptyTargetImpl(TypeAnnotation.TargetType targetType)
extends Record
implements TypeAnnotation.EmptyTarget
-
Constructor Summary
ConstructorsConstructorDescriptionEmptyTargetImpl(TypeAnnotation.TargetType targetType) Creates an instance of aEmptyTargetImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetargetTyperecord component.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.TypeAnnotation.TargetInfo
size
-
Constructor Details
-
EmptyTargetImpl
Creates an instance of aEmptyTargetImplrecord class.- Parameters:
targetType- the value for thetargetTyperecord component
-
-
Method Details
-
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). -
targetType
Returns the value of thetargetTyperecord component.- Specified by:
targetTypein interfaceTypeAnnotation.TargetInfo- Returns:
- the value of the
targetTyperecord component
-