Record Class NumbersBean

java.lang.Object
java.lang.Record
io.micronaut.serde.yaml.tck.NumbersBean
Record Components:
i - The int value
l - The long value
d - The double value
f - The float value
bigInteger - The big integer value
bigDecimal - 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 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 a NumbersBean record class.
      Parameters:
      i - the value for the i record component
      l - the value for the l record component
      d - the value for the d record component
      f - the value for the f record component
      bigInteger - the value for the bigInteger record component
      bigDecimal - the value for the bigDecimal record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • i

      @Nullable public @Nullable Integer i()
      Returns the value of the i record component.
      Returns:
      the value of the i record component
    • l

      @Nullable public @Nullable Long l()
      Returns the value of the l record component.
      Returns:
      the value of the l record component
    • d

      @Nullable public @Nullable Double d()
      Returns the value of the d record component.
      Returns:
      the value of the d record component
    • f

      @Nullable public @Nullable Float f()
      Returns the value of the f record component.
      Returns:
      the value of the f record component
    • bigInteger

      @Nullable public @Nullable BigInteger bigInteger()
      Returns the value of the bigInteger record component.
      Returns:
      the value of the bigInteger record component
    • bigDecimal

      @Nullable public @Nullable BigDecimal bigDecimal()
      Returns the value of the bigDecimal record component.
      Returns:
      the value of the bigDecimal record component