| Package | com.addicted2flash.util |
| Class | public class ArraySet |
| Inheritance | ArraySet AbstractArraySet AbstractArrayCollection |
| Implements | ISet |
| Subclasses | SortedArraySet |
Array-based list.
A collection that contains no duplicate elements and at most one null element.
| Method | Defined by | ||
|---|---|---|---|
|
ArraySet(field:Array = null)
Create a new
ArraySet
| ArraySet | ||
![]() |
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| AbstractArraySet | |
![]() |
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| AbstractArrayCollection | |
![]() |
clear():void
Removes all of the elements from this list (optional operation).
| AbstractArrayCollection | |
|
Returns a copy of the
ICollection. | ArraySet | ||
![]() |
contains(o:*):Boolean
Returns true if this list contains the specified element.
| AbstractArrayCollection | |
![]() |
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| AbstractArrayCollection | |
![]() |
dispose():void
free memory for garbage collection.
| AbstractArrayCollection | |
![]() |
getAt(i:int):*
Returns the element at the specified position in this collection.
| AbstractArrayCollection | |
![]() |
isEmpty():Boolean
Returns true if this list contains no elements.
| AbstractArrayCollection | |
![]() |
Returns an iterator over the elements in this list.
| AbstractArrayCollection | |
![]() |
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| AbstractArrayCollection | |
![]() |
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| AbstractArrayCollection | |
![]() |
size():int
Returns the number of elements in this list.
| AbstractArrayCollection | |
![]() |
toArray():Array
Converts the collection into an array.
| AbstractArrayCollection | |
|
toString():String
String representation of
ArraySet. | ArraySet | ||
| ArraySet | () | constructor |
public function ArraySet(field:Array = null)
Create a new ArraySet
field:Array (default = null) — (optional) an existing Array
|
| clone | () | method |
public override function clone():ICollection
Returns a copy of the ICollection.
ICollection —
a copy of the ICollection
|
| toString | () | method |
public function toString():String
String representation of ArraySet.
String — String representation of ArraySet
|