Packageorg.servebox.commons.collection
Classpublic class AbstractSet
InheritanceAbstractSet Inheritance AbstractCollection Inheritance BasicObject
ImplementsISet
SubclassesHashSet, SortedSet

Abstract implementation of the ISet interface.



Public Properties
 PropertyDefined by
 InheritedinternalInstanceId : uint
The internal instance id of the object.
BasicObject
Protected Properties
 PropertyDefined by
 Inherited_list : Array
AbstractCollection
Public Methods
 MethodDefined by
  
AbstractSet(collection:ICollection = null)
Creates a new AbstractSet object.
AbstractSet
  
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
AbstractSet
 Inherited
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
AbstractCollection
 Inherited
clear():void
Empties the collection.
AbstractCollection
 Inherited
Indicates whether the collection contains the specified element.
AbstractCollection
 Inherited
Indicates whether the collection contains the specified elements.
AbstractCollection
 Inherited
equals(o:IBasicObject):Boolean
Object comparison mechanism.
AbstractCollection
 Inherited
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
AbstractCollection
 Inherited
Generates a unique unsigned integer id at instanciation
BasicObject
 Inherited
hashCode():int
Returns the hashcode of the object.
BasicObject
  
isEmpty():Boolean
Indicates whether the collection contains elements.
AbstractSet
 Inherited
Retrieves an iterator over a set of objects.
AbstractCollection
  
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
AbstractSet
  
Removes the specified elements from the collection.
AbstractSet
 Inherited
size():int
The number of elements in the collection.
AbstractCollection
 Inherited
toArray():Array
Retrieves the elements of the collection into an Array instance.
AbstractCollection
 Inherited
toString():String
Returns the string representation of the specified object.
BasicObject
Protected Methods
 MethodDefined by
 Inherited
AbstractCollection
Constructor detail
AbstractSet()constructor
public function AbstractSet(collection:ICollection = null)

Creates a new AbstractSet object.

Parameters
collection:ICollection (default = null)
Method detail
add()method
public override function add(o:IBasicObject):Boolean

Adds the specified element to the collection.

Parameters
o:IBasicObject

Returns
Boolean
isEmpty()method 
public override function isEmpty():Boolean

Indicates whether the collection contains elements.

Returns
Boolean
remove()method 
public override function remove(o:IBasicObject):Boolean

Removes the specified element from the collection.

Parameters
o:IBasicObject

Returns
Boolean
removeAll()method 
public override function removeAll(c:ICollection):Boolean

Removes the specified elements from the collection.

Parameters
c:ICollection

Returns
Boolean