Renamed DSet.entries() -> DSet.iterator().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3406 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -113,7 +113,7 @@ public class OccupantDirector extends BasicDirector
|
||||
return null;
|
||||
}
|
||||
|
||||
Iterator iter = _place.occupantInfo.entries();
|
||||
Iterator iter = _place.occupantInfo.iterator();
|
||||
while (iter.hasNext()) {
|
||||
OccupantInfo info = (OccupantInfo)iter.next();
|
||||
if (info.username.equals(username)) {
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PlaceObject extends DObject
|
||||
public OccupantInfo getOccupantInfo (Name username)
|
||||
{
|
||||
try {
|
||||
Iterator iter = occupantInfo.entries();
|
||||
Iterator iter = occupantInfo.iterator();
|
||||
while (iter.hasNext()) {
|
||||
OccupantInfo info = (OccupantInfo)iter.next();
|
||||
if (info.username.equals(username)) {
|
||||
|
||||
@@ -130,7 +130,7 @@ public class PlaceManager
|
||||
public void applyToOccupants (OccupantOp op)
|
||||
{
|
||||
if (_plobj != null) {
|
||||
Iterator iter = _plobj.occupantInfo.entries();
|
||||
Iterator iter = _plobj.occupantInfo.iterator();
|
||||
while (iter.hasNext()) {
|
||||
op.apply((OccupantInfo)iter.next());
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: OccupantList.java,v 1.9 2004/11/15 01:47:52 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -59,7 +59,7 @@ public class OccupantList
|
||||
public void willEnterPlace (PlaceObject plobj)
|
||||
{
|
||||
// add all of the occupants of the place to our list
|
||||
Iterator users = plobj.occupantInfo.entries();
|
||||
Iterator users = plobj.occupantInfo.iterator();
|
||||
while (users.hasNext()) {
|
||||
OccupantInfo info = (OccupantInfo)users.next();
|
||||
_model.addElement(info.username);
|
||||
|
||||
@@ -140,7 +140,7 @@ public class TableListView extends JPanel
|
||||
// iterate over the tables already active in this lobby and put
|
||||
// them in their respective lists
|
||||
TableLobbyObject tlobj = (TableLobbyObject)place;
|
||||
Iterator iter = tlobj.tableSet.entries();
|
||||
Iterator iter = tlobj.tableSet.iterator();
|
||||
while (iter.hasNext()) {
|
||||
tableAdded((Table)iter.next());
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: InvocationDirector.java,v 1.34 2004/08/27 02:20:18 mdb Exp $
|
||||
// $Id$
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||
@@ -363,7 +363,7 @@ public class InvocationDirector
|
||||
_clobj.startTransaction();
|
||||
try {
|
||||
_clobj.setReceivers(new DSet());
|
||||
Iterator iter = receivers.entries();
|
||||
Iterator iter = receivers.iterator();
|
||||
while (iter.hasNext()) {
|
||||
_clobj.addToReceivers((Registration)iter.next());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user