package com.esotericsoftware.kryo.serializers; import java.util.HashMap; import java.util.Map; public final class Generics { private Map typeVar2class; public Generics() { this.typeVar2class = new HashMap(); } public Generics(Map map) { this.typeVar2class = new HashMap(map); } public void add(String str, Class cls) { this.typeVar2class.put(str, cls); } public Class getConcreteClass(String str) { return this.typeVar2class.get(str); } public Map getMappings() { return this.typeVar2class; } public String toString() { return this.typeVar2class.toString(); } }