Class DefaultSerializers.TreeMapSerializer

  • Enclosing class:
    DefaultSerializers

    public static class DefaultSerializers.TreeMapSerializer
    extends MapSerializer
    Serializer for TreeMap and any subclass.
    • Constructor Detail

      • TreeMapSerializer

        public TreeMapSerializer()
    • Method Detail

      • write

        public void write​(Kryo kryo,
                          Output output,
                          java.util.Map map)
        Description copied from class: Serializer
        Writes the bytes for the object to the output.

        This method should not be called directly, instead this serializer can be passed to Kryo write methods that accept a serialier.

        Overrides:
        write in class MapSerializer
        map - May be null if Serializer.getAcceptsNull() is true.
      • createCopy

        protected java.util.Map createCopy​(Kryo kryo,
                                           java.util.Map original)
        Overrides:
        createCopy in class MapSerializer
      • createTreeMap

        private java.util.TreeMap createTreeMap​(java.lang.Class<? extends java.util.Map> type,
                                                java.util.Comparator comparator)