All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artemis.io.SerializationKeyTracker Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
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