From c5a557214b48ec0b4758de1499c8675287a9d8b7 Mon Sep 17 00:00:00 2001 From: Tom Conkling Date: Mon, 3 Dec 2007 21:22:53 +0000 Subject: [PATCH] ISet -> Set git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4895 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/HashSet.as | 2 +- src/as/com/threerings/util/ISet.as | 57 --------------------------- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 src/as/com/threerings/util/ISet.as diff --git a/src/as/com/threerings/util/HashSet.as b/src/as/com/threerings/util/HashSet.as index 2111cb885..996528385 100644 --- a/src/as/com/threerings/util/HashSet.as +++ b/src/as/com/threerings/util/HashSet.as @@ -22,7 +22,7 @@ package com.threerings.util { public class HashSet - implements ISet + implements Set { /** * Construct a HashSet diff --git a/src/as/com/threerings/util/ISet.as b/src/as/com/threerings/util/ISet.as deleted file mode 100644 index 2af612b27..000000000 --- a/src/as/com/threerings/util/ISet.as +++ /dev/null @@ -1,57 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved -// http://www.threerings.net/code/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.util { - -public interface ISet -{ - /** - * Adds the specified element to the set if it's not already present. - * Returns true if the set did not already contain the specified element. - */ - function add (o :Object) :Boolean; - - /** - * Removes the specified element from this set if it is present. - * Returns true if the set contained the specified element. - */ - function remove (o :Object) :Boolean; - - /** Remove all elements from this set. */ - function clear () :void; - - /** Returns true if this set contains the specified element. */ - function contains (o :Object) :Boolean; - - /** Retuns the number of elements in this set. */ - function size () :int; // @TSC - should this be uint? - - /** Returns true if this set contains no elements. */ - function isEmpty () :Boolean; - - /** - * Returns all elements in the set in an Array. - * Modifying the returned Array will not modify the set. - */ - function toArray () :Array; -} - -}