Record Class Conversions.PrimitiveConversion
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.bytecode.core.Conversions.PrimitiveConversion
- Record Components:
from- The primitive convertedto- The primitive it is converted to
- All Implemented Interfaces:
Conversions.Step
- Enclosing class:
Conversions
public static record Conversions.PrimitiveConversion(TypeDef.Primitive from, TypeDef.Primitive to)
extends Record
implements Conversions.Step
A conversion of a primitive to another:
i2l, l2i followed by i2b, and so on.- Since:
- 2.3
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aPrimitiveConversionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
from
-
to
-