| Package | org.servebox.commons.collection |
| Class | public class AbstractSet |
| Inheritance | AbstractSet AbstractCollection BasicObject |
| Implements | ISet |
| Subclasses | HashSet, SortedSet |
| Method | Defined by | ||
|---|---|---|---|
|
AbstractSet(collection:ICollection = null)
Creates a new AbstractSet object.
| AbstractSet | ||
|
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
| AbstractSet | ||
![]() |
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
| AbstractCollection | |
![]() |
clear():void
Empties the collection.
| AbstractCollection | |
![]() |
contains(o:IBasicObject):Boolean
Indicates whether the collection contains the specified element.
| AbstractCollection | |
![]() |
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.
| AbstractCollection | |
|
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
| AbstractSet | ||
|
removeAll(c:ICollection):Boolean
Removes the specified elements from the collection.
| AbstractSet | ||
![]() |
size():int
The number of elements in the collection.
| AbstractCollection | |
![]() |
toArray():Array
Retrieves the elements of the collection into an Array instance.
| AbstractCollection | |
![]() |
toString():String
Returns the string representation of the specified object.
| BasicObject | |
| AbstractSet | () | constructor |
public function AbstractSet(collection:ICollection = null)Creates a new AbstractSet object.
Parameterscollection:ICollection (default = null) |
| add | () | method |
public override function add(o:IBasicObject):BooleanAdds the specified element to the collection.
Parameterso:IBasicObject |
Boolean |
| isEmpty | () | method |
public override function isEmpty():BooleanIndicates whether the collection contains elements.
ReturnsBoolean |
| remove | () | method |
public override function remove(o:IBasicObject):BooleanRemoves the specified element from the collection.
Parameterso:IBasicObject |
Boolean |
| removeAll | () | method |
public override function removeAll(c:ICollection):BooleanRemoves the specified elements from the collection.
Parametersc:ICollection |
Boolean |