com.artemis.io.SerializationKeyTracker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb-serializer Show documentation
Show all versions of artemis-odb-serializer Show documentation
Fork of Artemis Entity System Framework.
package com.artemis.io;
import com.artemis.Entity;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* Maintains serialization-local key-to-entity mappings.
*/
class SerializationKeyTracker {
private Map keyToEntity = new HashMap();
void register(String key, Entity e) {
keyToEntity.put(key, e);
}
Entity get(String key) {
return keyToEntity.get(key);
}
Set keys() {
return keyToEntity.keySet();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy