Class MonthDayAsDecimal128Codec

  • All Implemented Interfaces:
    Codec<MonthDay>, Decoder<MonthDay>, Encoder<MonthDay>

    public final class MonthDayAsDecimal128Codec
    extends Object
    implements Codec<MonthDay>

    Encodes and decodes MonthDay values to and from BSON Decimal128, such as 1.02.

    The values are stored using the following format: %d.%02d

    • the first part represents a month;
    • the latter part represents a day of this month.
    This type is immutable.