A healthy dash of google-collections
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5798 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,6 +23,8 @@ package com.threerings.presents.client;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
||||
import com.google.common.collect.Sets;
|
||||
|
||||
import com.samskivert.util.Interval;
|
||||
import com.samskivert.util.ObserverList;
|
||||
import com.samskivert.util.RunAnywhere;
|
||||
@@ -995,7 +997,7 @@ public class Client
|
||||
protected BootstrapData _bstrap;
|
||||
|
||||
/** The set of bootstrap service groups this client cares about. */
|
||||
protected HashSet<String> _bootGroups = new HashSet<String>(); {
|
||||
protected HashSet<String> _bootGroups = Sets.newHashSet(); {
|
||||
_bootGroups.add(InvocationCodes.GLOBAL_GROUP);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,9 @@ import java.util.List;
|
||||
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import com.samskivert.util.DebugChords;
|
||||
import com.samskivert.util.HashIntMap;
|
||||
import com.samskivert.util.IntMap;
|
||||
@@ -491,7 +494,7 @@ public class ClientDObjectMgr
|
||||
protected static final class PendingRequest<T extends DObject>
|
||||
{
|
||||
public int oid;
|
||||
public ArrayList<Subscriber<T>> targets = new ArrayList<Subscriber<T>>();
|
||||
public ArrayList<Subscriber<T>> targets = Lists.newArrayList();
|
||||
|
||||
public PendingRequest (int oid)
|
||||
{
|
||||
@@ -542,7 +545,7 @@ public class ClientDObjectMgr
|
||||
protected HashIntMap<PendingRequest<?>> _penders = new HashIntMap<PendingRequest<?>>();
|
||||
|
||||
/** A mapping from distributed object class to flush delay. */
|
||||
protected HashMap<Class<?>, Long> _delays = new HashMap<Class<?>, Long>();
|
||||
protected HashMap<Class<?>, Long> _delays = Maps.newHashMap();
|
||||
|
||||
/** A set of objects waiting to be flushed. */
|
||||
protected HashIntMap<FlushRecord> _flushes = new HashIntMap<FlushRecord>();
|
||||
|
||||
@@ -24,6 +24,8 @@ package com.threerings.presents.client;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import com.samskivert.util.HashIntMap;
|
||||
|
||||
import com.threerings.presents.client.InvocationReceiver.Registration;
|
||||
@@ -424,7 +426,7 @@ public class InvocationDirector
|
||||
|
||||
/** All registered receivers are maintained in a list so that we can assign receiver ids to
|
||||
* them when we go online. */
|
||||
protected ArrayList<InvocationDecoder> _reclist = new ArrayList<InvocationDecoder>();
|
||||
protected ArrayList<InvocationDecoder> _reclist = Lists.newArrayList();
|
||||
|
||||
/** The last time we flushed our listeners. */
|
||||
protected long _lastFlushTime;
|
||||
|
||||
Reference in New Issue
Block a user