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
@@ -62,6 +62,14 @@ public class DSet
return _entries.length; return _entries.length;
} }
/**
* 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 * Returns true if the set contains an entry whose
* <code>getKey()</code> method returns a key that * <code>getKey()</code> method returns a key that