
nl.weeaboo.lua2.io.Environment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of luajpp2-core Show documentation
Show all versions of luajpp2-core Show documentation
Fork of LuaJ with added serialization support
package nl.weeaboo.lua2.io;
import java.util.HashMap;
import java.util.IdentityHashMap;
import java.util.Map;
/**
* 'External' environment used by {@link ObjectSerializer}. When serializing an object stored in the
* environment, instead the object's id is stored. During deserialization, the id is used to retrieve the
* object from the environment again.
*/
public final class Environment {
private final Map idObjMap = new HashMap<>();
private final IdentityHashMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy