Changed DSet.Element to DSet.Entry in preparation for the addition of

array element update support. (Arrays have elements, sets have entries.)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1133 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-03-18 23:21:26 +00:00
parent 76cff072be
commit 7ccb9594b9
18 changed files with 323 additions and 327 deletions
@@ -1,5 +1,5 @@
//
// $Id: PlaceObject.java,v 1.4 2002/03/08 01:06:12 mdb Exp $
// $Id: PlaceObject.java,v 1.5 2002/03/18 23:21:26 mdb Exp $
package com.threerings.crowd.data;
@@ -47,39 +47,39 @@ public class PlaceObject extends DObject
}
/**
* Requests that the specified element be added to the
* Requests that the specified entry be added to the
* <code>occupantInfo</code> set. The set will not change until the event is
* actually propagated through the system.
*/
public void addToOccupantInfo (DSet.Element elem)
public void addToOccupantInfo (DSet.Entry elem)
{
requestElementAdd(OCCUPANT_INFO, elem);
requestEntryAdd(OCCUPANT_INFO, elem);
}
/**
* Requests that the element matching the supplied key be removed from
* Requests that the entry matching the supplied key be removed from
* the <code>occupantInfo</code> set. The set will not change until the
* event is actually propagated through the system.
*/
public void removeFromOccupantInfo (Object key)
{
requestElementRemove(OCCUPANT_INFO, key);
requestEntryRemove(OCCUPANT_INFO, key);
}
/**
* Requests that the specified element be updated in the
* Requests that the specified entry be updated in the
* <code>occupantInfo</code> set. The set will not change until the event is
* actually propagated through the system.
*/
public void updateOccupantInfo (DSet.Element elem)
public void updateOccupantInfo (DSet.Entry elem)
{
requestElementUpdate(OCCUPANT_INFO, elem);
requestEntryUpdate(OCCUPANT_INFO, elem);
}
/**
* Requests that the <code>occupantInfo</code> field be set to the
* specified value. Generally one only adds, updates and removes
* elements of a distributed set, but certain situations call for a
* entries of a distributed set, but certain situations call for a
* complete replacement of the set value. The local value will be
* updated immediately and an event will be propagated through the
* system to notify all listeners that the attribute did