Implements a map-backed set of strings.
| Legato. | Implements a map-backed set of strings. |
| Functions | |
| initialize | Constructs the set. |
| size | Returns: {Integer} Number of the elements in the set. |
| isEmpty | Returns: {Boolean} True if set is empty, false otherwise. |
| contains | Checks if the set contains the value or not. |
| add | Adds the value to the set. |
| addAll | Adds all the elements of the given collection to this set. |
| remove | Removes the element from the set. |
| toArray | Returns: {Array(String)} Array of elements contained in this set. |
| clear | Clears the set. |
Constructs the set.
initialize : function()
Returns: {Integer} Number of the elements in the set.
size : function()
Returns: {Boolean} True if set is empty, false otherwise.
isEmpty : function()
Checks if the set contains the value or not.
contains : function( value )
Adds the value to the set.
add : function( value )
Adds all the elements of the given collection to this set.
addAll : function( set )
Removes the element from the set.
remove : function( value )
Returns: {Array(String)} Array of elements contained in this set.
toArray : function()
Clears the set.
clear : function()