A set is a container style object that provides a mechanism for keeping track of a number of objects. More...
Extended by: | |
Constructors: |
|
Methods: |
Each object in a set occurs exactly once - inserting the same object into a set multiple times does not result in the set containing multiple references to the same object.
Sets are implemented behind the scenes using Map objects, and are just as efficient at insertng, removing and finding objects.
Classes that extend Set Extending classes should invoke this method with a valid map object to be used to implement the set. Return True if the specified value is contained in the set, else False. Counts and returns the number of objects in the set.
Note that this method takes O(N) time - that is, it must visit each object in the set.
Constructor Documentation
Method Documentation