Record Class Conversions.Box
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.bytecode.core.Conversions.Box
- Record Components:
primitive- The primitive boxed
- All Implemented Interfaces:
Conversions.Step
- Enclosing class:
Conversions
public static record Conversions.Box(TypeDef.Primitive primitive)
extends Record
implements Conversions.Step
A boxing of a primitive: the
valueOf of its wrapper.- Since:
- 2.3
-
Constructor Summary
Constructors -
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.owner()Returns the value of theprimitiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Box
Creates an instance of aBoxrecord class.- Parameters:
primitive- the value for theprimitiverecord component
-
-
Method Details
-
owner
- Returns:
- The internal name of the wrapper, which declares the
valueOf
-
methodDescriptor
- Returns:
- The descriptor of the
valueOf:(I)Ljava/lang/Integer;of anint
-
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). -
primitive
-