Add isEmpty
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6686 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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
|
* 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
|
||||||
* <code>equals()</code> the key returned by <code>getKey()</code> of
|
* <code>equals()</code> the key returned by <code>getKey()</code> of
|
||||||
|
|||||||
Reference in New Issue
Block a user