| Package | org.servebox.commons.collection |
| Class | public class HashSet |
| Inheritance | HashSet AbstractSet AbstractCollection BasicObject |
| Implements | ISet |
| Property | Defined by | ||
|---|---|---|---|
| _elements : Hashtable | HashSet | ||
![]() | _list : Array | AbstractCollection | |
| Method | Defined by | ||
|---|---|---|---|
|
HashSet(collection:ICollection = null)
| HashSet | ||
|
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
| HashSet | ||
|
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
| HashSet | ||
|
clear():void
Empties the collection.
| HashSet | ||
|
contains(o:IBasicObject):Boolean
| HashSet | ||
![]() |
containsAll(c:ICollection):Boolean
Indicates whether the collection contains the specified elements.
| AbstractCollection | |
![]() |
equals(o:IBasicObject):Boolean
Object comparison mechanism.
| AbstractCollection | |
![]() |
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
| AbstractCollection | |
![]() |
getInstanceId():uint
Generates a unique unsigned integer id at instanciation
| BasicObject | |
![]() |
hashCode():int
Returns the hashcode of the object.
| BasicObject | |
![]() |
isEmpty():Boolean
Indicates whether the collection contains elements.
| AbstractSet | |
|
Retrieves an iterator over a set of objects.
| HashSet | ||
|
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
| HashSet | ||
![]() |
removeAll(c:ICollection):Boolean
Removes the specified elements from the collection.
| AbstractSet | |
|
size():int
The number of elements in the collection.
| HashSet | ||
|
toArray():Array
Retrieves the elements of the collection into an Array instance.
| HashSet | ||
![]() |
toString():String
Returns the string representation of the specified object.
| BasicObject | |
| _elements | property |
protected var _elements:Hashtable
| HashSet | () | constructor |
public function HashSet(collection:ICollection = null)Parameters
collection:ICollection (default = null) |
| add | () | method |
public override function add(o:IBasicObject):BooleanAdds the specified element to the collection.
Parameterso:IBasicObject |
Boolean |
| addAll | () | method |
public override function addAll(c:ICollection):BooleanAdds the specified elements to the collection.
Parametersc:ICollection |
Boolean |
| clear | () | method |
public override function clear():voidEmpties the collection.
| contains | () | method |
| iterator | () | method |
public override function iterator():IIteratorRetrieves an iterator over a set of objects.
ReturnsIIterator |
| remove | () | method |
public override function remove(o:IBasicObject):BooleanRemoves the specified element from the collection.
Parameterso:IBasicObject |
Boolean |
| size | () | method |
public override function size():intThe number of elements in the collection.
Returnsint |
| toArray | () | method |
public override function toArray():ArrayRetrieves the elements of the collection into an Array instance.
ReturnsArray |