Class OptionalJacksonMapdbSerializer<T>

  • All Implemented Interfaces:
    java.util.Comparator<java.util.Optional<T>>, org.mapdb.Serializer<java.util.Optional<T>>

    public class OptionalJacksonMapdbSerializer<T>
    extends java.lang.Object
    implements org.mapdb.Serializer<java.util.Optional<T>>
    • Field Summary

      • Fields inherited from interface org.mapdb.Serializer

        BIG_DECIMAL, BIG_INTEGER, BOOLEAN, BYTE, BYTE_ARRAY, BYTE_ARRAY_DELTA, BYTE_ARRAY_DELTA2, BYTE_ARRAY_NOSIZE, CHAR, CHAR_ARRAY, CLASS, DATE, DOUBLE, DOUBLE_ARRAY, ELSA, FLOAT, FLOAT_ARRAY, ILLEGAL_ACCESS, INT_ARRAY, INTEGER, INTEGER_DELTA, INTEGER_PACKED, JAVA, LONG, LONG_ARRAY, LONG_DELTA, LONG_PACKED, RECID, RECID_ARRAY, SHORT, SHORT_ARRAY, STRING, STRING_ASCII, STRING_DELTA, STRING_DELTA2, STRING_INTERN, STRING_NOSIZE, STRING_ORIGHASH, UUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<T> deserialize​(org.mapdb.DataInput2 input, int available)  
      void serialize​(org.mapdb.DataOutput2 out, java.util.Optional<T> value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • Methods inherited from interface org.mapdb.Serializer

        clone, compare, deserializeFromLong, equals, fixedSize, hashCode, isTrusted, needsAvailableSizeHint
    • Constructor Detail

      • OptionalJacksonMapdbSerializer

        public OptionalJacksonMapdbSerializer​(java.lang.Class<T> tClass)
    • Method Detail

      • serialize

        public void serialize​(@NotNull
                              org.mapdb.DataOutput2 out,
                              @NotNull
                              java.util.Optional<T> value)
                       throws java.io.IOException
        Specified by:
        serialize in interface org.mapdb.Serializer<T>
        Throws:
        java.io.IOException
      • deserialize

        public java.util.Optional<T> deserialize​(@NotNull
                                                 org.mapdb.DataInput2 input,
                                                 int available)
                                          throws java.io.IOException
        Specified by:
        deserialize in interface org.mapdb.Serializer<T>
        Throws:
        java.io.IOException