ArrayUtil --> Arrays.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6660 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
package com.threerings.crowd.chat.client {
|
package com.threerings.crowd.chat.client {
|
||||||
import com.threerings.util.ArrayUtil;
|
import com.threerings.util.Arrays;
|
||||||
import com.threerings.util.Log;
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.Map;
|
import com.threerings.util.Map;
|
||||||
import com.threerings.util.Maps;
|
import com.threerings.util.Maps;
|
||||||
@@ -214,7 +214,7 @@ public class ChatDirector extends BasicDirector
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var wasThere :Boolean = ArrayUtil.removeAll(_chatters, name);
|
var wasThere :Boolean = Arrays.removeAll(_chatters, name);
|
||||||
_chatters.unshift(name);
|
_chatters.unshift(name);
|
||||||
|
|
||||||
if (!wasThere) {
|
if (!wasThere) {
|
||||||
@@ -782,7 +782,7 @@ public class ChatDirector extends BasicDirector
|
|||||||
protected function addToHistory (cmd :String) :void
|
protected function addToHistory (cmd :String) :void
|
||||||
{
|
{
|
||||||
// remove any previous instance of this command
|
// remove any previous instance of this command
|
||||||
ArrayUtil.removeAll(_history, cmd);
|
Arrays.removeAll(_history, cmd);
|
||||||
|
|
||||||
// append it to the end
|
// append it to the end
|
||||||
_history.push(cmd);
|
_history.push(cmd);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.dobj {
|
package com.threerings.presents.dobj {
|
||||||
|
|
||||||
import com.threerings.util.ArrayUtil;
|
import com.threerings.util.Arrays;
|
||||||
|
|
||||||
import com.threerings.io.Streamable;
|
import com.threerings.io.Streamable;
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ public class OidList
|
|||||||
public function add (oid :int) :Boolean
|
public function add (oid :int) :Boolean
|
||||||
{
|
{
|
||||||
// check for existence
|
// check for existence
|
||||||
if (ArrayUtil.contains(_oids, oid)) {
|
if (Arrays.contains(_oids, oid)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ public class OidList
|
|||||||
public function remove (oid :int) :Boolean
|
public function remove (oid :int) :Boolean
|
||||||
{
|
{
|
||||||
// scan for the oid in question
|
// scan for the oid in question
|
||||||
return ArrayUtil.removeFirst(_oids, oid);
|
return Arrays.removeFirst(_oids, oid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -90,7 +90,7 @@ public class OidList
|
|||||||
*/
|
*/
|
||||||
public function contains (oid :int) :Boolean
|
public function contains (oid :int) :Boolean
|
||||||
{
|
{
|
||||||
return ArrayUtil.contains(_oids, oid);
|
return Arrays.contains(_oids, oid);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class StreamableArrayList
|
|||||||
|
|
||||||
public function contains (item :Object) :Boolean
|
public function contains (item :Object) :Boolean
|
||||||
{
|
{
|
||||||
return ArrayUtil.contains(_array, item);
|
return Arrays.contains(_array, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get (index :int) :*
|
public function get (index :int) :*
|
||||||
@@ -70,7 +70,7 @@ public class StreamableArrayList
|
|||||||
|
|
||||||
public function indexOf (item :Object) :int
|
public function indexOf (item :Object) :int
|
||||||
{
|
{
|
||||||
return ArrayUtil.indexOf(_array, item);
|
return Arrays.indexOf(_array, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isEmpty () :Boolean
|
public function isEmpty () :Boolean
|
||||||
@@ -85,7 +85,7 @@ public class StreamableArrayList
|
|||||||
|
|
||||||
public function remove (item :Object) :Boolean
|
public function remove (item :Object) :Boolean
|
||||||
{
|
{
|
||||||
return ArrayUtil.removeFirst(_array, item);
|
return Arrays.removeFirst(_array, item);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function removeAll (otherList :*) :Boolean
|
public function removeAll (otherList :*) :Boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user