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:
Michael Bayne
2005-03-15 02:12:03 +00:00
parent 12b267dbae
commit 2d19a0ba82
6 changed files with 8 additions and 8 deletions
@@ -113,7 +113,7 @@ public class OccupantDirector extends BasicDirector
return null; return null;
} }
Iterator iter = _place.occupantInfo.entries(); Iterator iter = _place.occupantInfo.iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
OccupantInfo info = (OccupantInfo)iter.next(); OccupantInfo info = (OccupantInfo)iter.next();
if (info.username.equals(username)) { if (info.username.equals(username)) {
@@ -93,7 +93,7 @@ public class PlaceObject extends DObject
public OccupantInfo getOccupantInfo (Name username) public OccupantInfo getOccupantInfo (Name username)
{ {
try { try {
Iterator iter = occupantInfo.entries(); Iterator iter = occupantInfo.iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
OccupantInfo info = (OccupantInfo)iter.next(); OccupantInfo info = (OccupantInfo)iter.next();
if (info.username.equals(username)) { if (info.username.equals(username)) {
@@ -130,7 +130,7 @@ public class PlaceManager
public void applyToOccupants (OccupantOp op) public void applyToOccupants (OccupantOp op)
{ {
if (_plobj != null) { if (_plobj != null) {
Iterator iter = _plobj.occupantInfo.entries(); Iterator iter = _plobj.occupantInfo.iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
op.apply((OccupantInfo)iter.next()); 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 // Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -59,7 +59,7 @@ public class OccupantList
public void willEnterPlace (PlaceObject plobj) public void willEnterPlace (PlaceObject plobj)
{ {
// add all of the occupants of the place to our list // add all of the occupants of the place to our list
Iterator users = plobj.occupantInfo.entries(); Iterator users = plobj.occupantInfo.iterator();
while (users.hasNext()) { while (users.hasNext()) {
OccupantInfo info = (OccupantInfo)users.next(); OccupantInfo info = (OccupantInfo)users.next();
_model.addElement(info.username); _model.addElement(info.username);
@@ -140,7 +140,7 @@ public class TableListView extends JPanel
// iterate over the tables already active in this lobby and put // iterate over the tables already active in this lobby and put
// them in their respective lists // them in their respective lists
TableLobbyObject tlobj = (TableLobbyObject)place; TableLobbyObject tlobj = (TableLobbyObject)place;
Iterator iter = tlobj.tableSet.entries(); Iterator iter = tlobj.tableSet.iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
tableAdded((Table)iter.next()); 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 // Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -363,7 +363,7 @@ public class InvocationDirector
_clobj.startTransaction(); _clobj.startTransaction();
try { try {
_clobj.setReceivers(new DSet()); _clobj.setReceivers(new DSet());
Iterator iter = receivers.entries(); Iterator iter = receivers.iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
_clobj.addToReceivers((Registration)iter.next()); _clobj.addToReceivers((Registration)iter.next());
} }