Record Class Conversions.Unboxing
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.bytecode.core.Conversions.Unboxing
- Record Components:
owner- The internal name of the class the reference is cast to and unboxed withunboxed- The primitive the unboxing method returns
- All Implemented Interfaces:
Conversions.Step
- Enclosing class:
Conversions
public static record Conversions.Unboxing(String owner, TypeDef.Primitive unboxed)
extends Record
implements Conversions.Step
An unboxing: a checkcast of the reference to the owner, which the method is invoked on, returning the primitive
the owner holds, and a conversion of that primitive to the target, where it is another.
- Since:
- 2.3
-
Constructor Summary
ConstructorsConstructorDescriptionUnboxing(String owner, TypeDef.Primitive unboxed) Creates an instance of aUnboxingrecord 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.method()owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.unboxed()Returns the value of theunboxedrecord component.
-
Constructor Details
-
Method Details
-
method
- Returns:
- The name of the unboxing method:
charValueof aCharacter
-
methodDescriptor
- Returns:
- The descriptor of the unboxing method:
()Cof aCharacter
-
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). -
owner
-
unboxed
-