Packagesystem.data.sets
Classpublic class ArraySet
InheritanceArraySet Inheritance CoreSet Inheritance ArrayCollection Inheritance Object
Implements Set

This class implement the Set interface and use an ArrayMap inside.



Public Methods
 MethodDefined By
  
ArraySet(init:* = null)
Creates a new ArraySet instance.
ArraySet
 Inherited
add(o:*):Boolean
[override] Adds the specified element to this set if it is not already present.
CoreSet
 Inherited
addAll(c:Collection):Boolean
Appends all of the elements in the specified collection to the end of this Collection, in the order that they are returned by the specified collection's iterator (optional operation).
ArrayCollection
 Inherited
clear():void
[override] Removes all of the elements from this Set (optional operation).
CoreSet
  
clone():*
[override] Returns a shallow copy of this Set (optional operation).
ArraySet
 Inherited
contains(o:*):Boolean
[override] Returns true if this Set contains the specified element.
CoreSet
 Inherited
Returns true if this collection contains all of the elements of the specified collection.
ArrayCollection
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
ArrayCollection
 Inherited
get(key:*):*
[override] Returns the element from this collection at the passed key index.
CoreSet
 Inherited
indexOf(o:*, fromIndex:uint = 0):int
[override] Returns the index of an element in the collection.
CoreSet
 Inherited
isEmpty():Boolean
[override] Returns true if this set contains no elements.
CoreSet
 Inherited
[override] Returns an iterator over the elements in this Set.
CoreSet
 Inherited
remove(o:*):*
[override] Removes the specified element from this set if it is present.
CoreSet
 Inherited
Removes from this Collection all the elements that are contained in the specified Collection (optional operation).
ArrayCollection
 Inherited
Retains only the elements in this Collection that are contained in the specified Collection (optional operation).
ArrayCollection
 Inherited
size():uint
[override] Returns the number of elements in this set (its cardinality).
CoreSet
 Inherited
toArray():Array
[override] Returns the array representation of all the elements of this Set.
CoreSet
 Inherited
toSource(indent:int = 0):String
Returns the source code string representation of the object.
ArrayCollection
 Inherited
toString():String
Returns the string representation of this instance.
ArrayCollection
Constructor Detail
ArraySet()Constructor
public function ArraySet(init:* = null)

Creates a new ArraySet instance.

You can use an optional parameter in this constructor with different type : an Array or a Collection instance to fill the Set object.

Parameters
init:* (default = null) — An optional Array or Iterable object to fill the collection.
Method Detail
clone()method
override public function clone():*

Returns a shallow copy of this Set (optional operation).

Returns
* — a shallow copy of this Set (optional operation).