Class LocalTimeAsDocumentCodec

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

    public final class LocalTimeAsDocumentCodec
    extends Object
    implements Codec<LocalTime>

    Encodes and decodes LocalTime values to and from BSON Document, such as { hour: 10, minute: 15, second: 30, nano: 0 }.

    The values are stored using the following structure:

    • hour (a non-null Int32);
    • minute (a non-null Int32);
    • second (a non-null Int32);
    • nano (a non-null Int32).

    This type is immutable.