Class HashBiMapSerializer

java.lang.Object
com.esotericsoftware.kryo.Serializer<T>
com.esotericsoftware.kryo.serializers.MapSerializer
com.conveyal.kryo.HashBiMapSerializer

public class HashBiMapSerializer extends com.esotericsoftware.kryo.serializers.MapSerializer
For HashBiMap standard map serialization works fine, but we need to tell it how to create an empty instance. Created by abyrd on 2018-10-25
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.esotericsoftware.kryo.serializers.MapSerializer

    com.esotericsoftware.kryo.serializers.MapSerializer.BindMap
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map
    create(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<Map> type)
     

    Methods inherited from class com.esotericsoftware.kryo.serializers.MapSerializer

    copy, create, createCopy, getKeyClass, getKeySerializer, getValueClass, getValueSerializer, read, setKeyClass, setKeyClass, setKeysCanBeNull, setKeySerializer, setValueClass, setValueClass, setValuesCanBeNull, setValueSerializer, write, writeHeader

    Methods inherited from class com.esotericsoftware.kryo.Serializer

    getAcceptsNull, isImmutable, setAcceptsNull, setImmutable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HashBiMapSerializer

      public HashBiMapSerializer()
  • Method Details

    • create

      protected Map create(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, Class<Map> type)