Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
//
// Nexus Core - a framework for developing distributed applications
// http://github.com/threerings/nexus/blob/master/LICENSE
package com.threerings.nexus.distrib;
import java.util.HashMap;
import java.util.Map;
import com.threerings.nexus.io.Streamable;
/**
* A map attribute for a Nexus object. Contains a mapping from keys to values.
*/
public class DMap extends react.RMap
implements DAttribute
{
/**
* Creates a distributed map that uses a {@link HashMap} as its underlying implementation.
*/
public static DMap create (NexusObject owner) {
return create(owner, new HashMap());
}
/**
* Creates a distributed map with the supplied underlying map implementation.
*/
public static DMap create (NexusObject owner, Map impl) {
return new DMap(owner, impl);
}
@Override public void readContents (Streamable.Input in) {
_impl = in.