Add isEmpty

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6686 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2011-07-29 06:37:10 +00:00
parent d01fa95238
commit 24dda56d4c
@@ -63,6 +63,14 @@ public class DSet
}
/**
* Returns true if this set contains no entries.
*/
public function isEmpty () :Boolean
{
return _entries.length == 0;
}
/**
* Returns true if the set contains an entry whose
* <code>getKey()</code> method returns a key that
* <code>equals()</code> the key returned by <code>getKey()</code> of