Class YearMonthAsStringCodec

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

    public final class YearMonthAsStringCodec
    extends Object
    implements Codec<YearMonth>

    Encodes and decodes YearMonth values to and from BSON String, such as 2018-01.

    The values are stored as quasi ISO-8601 formatted strings (see YearMonth). Note that the years greater than 9999 are prefixed with the + sign.

    This type is immutable.