Record Class NumbersBean
java.lang.Object
java.lang.Record
io.micronaut.serde.yaml.tck.NumbersBean
- Record Components:
i- The int valuel- The long valued- The double valuef- The float valuebigInteger- The big integer valuebigDecimal- The big decimal value
public record NumbersBean(@Nullable Integer i, @Nullable Long l, @Nullable Double d, @Nullable Float f, @Nullable BigInteger bigInteger, @Nullable BigDecimal bigDecimal)
extends Record
A bean holding every numeric type, used to exercise YAML core schema numbers.
-
Constructor Summary
ConstructorsConstructorDescriptionNumbersBean(@Nullable Integer i, @Nullable Long l, @Nullable Double d, @Nullable Float f, @Nullable BigInteger bigInteger, @Nullable BigDecimal bigDecimal) Creates an instance of aNumbersBeanrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable BigDecimalReturns the value of thebigDecimalrecord component.@Nullable BigIntegerReturns the value of thebigIntegerrecord component.@Nullable Doubled()Returns the value of thedrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Floatf()Returns the value of thefrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Integeri()Returns the value of theirecord component.@Nullable Longl()Returns the value of thelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NumbersBean
public NumbersBean(@Nullable @Nullable Integer i, @Nullable @Nullable Long l, @Nullable @Nullable Double d, @Nullable @Nullable Float f, @Nullable @Nullable BigInteger bigInteger, @Nullable @Nullable BigDecimal bigDecimal) Creates an instance of aNumbersBeanrecord class.- Parameters:
i- the value for theirecord componentl- the value for thelrecord componentd- the value for thedrecord componentf- the value for thefrecord componentbigInteger- the value for thebigIntegerrecord componentbigDecimal- the value for thebigDecimalrecord 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). -
i
-
l
-
d
-
f
-
bigInteger
Returns the value of thebigIntegerrecord component.- Returns:
- the value of the
bigIntegerrecord component
-
bigDecimal
Returns the value of thebigDecimalrecord component.- Returns:
- the value of the
bigDecimalrecord component
-