Property definitions

serialization $ DeserializerCache :: defaultinit
# Cache of received objects sorted by there reference id
#
# Used by `Deserializer` to find already deserialized objects by their reference.
class DeserializerCache
	# Map of references to already deserialized objects.
	protected var received: Map[Int, Object] = new StrictHashMap[Int, Object]

	# Is there an object associated to `id`?
	fun has_id(id: Int): Bool do return received.keys.has(id)

	# Get the object associated to `id`
	fun object_for(id: Int): nullable Object do return received[id]

	# Associate `object` to `id`
	fun []=(id: Int, object: Object) do received[id] = object
end
lib/serialization/caching.nit:86,1--101,3