Record Class Conversions.CheckCast
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.bytecode.core.Conversions.CheckCast
- Record Components:
descriptor- The descriptor of the type the reference is cast to
- All Implemented Interfaces:
Conversions.Step
- Enclosing class:
Conversions
public static record Conversions.CheckCast(String descriptor)
extends Record
implements Conversions.Step
A
checkcast of a reference.- Since:
- 2.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CheckCast
Creates an instance of aCheckCastrecord class.- Parameters:
descriptor- the value for thedescriptorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-