| Package | system.data.sets |
| Class | public class CoreSet |
| Inheritance | CoreSet ArrayCollection Object |
| Implements | Set |
| Subclasses | ArraySet, HashSet |
| Method | Defined By | ||
|---|---|---|---|
Creates a new CoreSet instance. | CoreSet | ||
add(o:*):Boolean [override]
Adds the specified element to this set if it is not already present. | CoreSet | ||
![]() | 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 | |
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). | CoreSet | ||
contains(o:*):Boolean [override]
Returns true if this Set contains the specified element. | CoreSet | ||
![]() | containsAll(c:Collection):Boolean
Returns true if this collection contains all of the elements of the specified collection. | ArrayCollection | |
![]() | equals(o:*):Boolean
Compares the specified object with this object for equality. | ArrayCollection | |
get(key:*):* [override]
Returns the element from this collection at the passed key index. | CoreSet | ||
indexOf(o:*, fromIndex:uint = 0):int [override]
Returns the index of an element in the collection. | CoreSet | ||
isEmpty():Boolean [override]
Returns true if this set contains no elements. | CoreSet | ||
[override]
Returns an iterator over the elements in this Set. | CoreSet | ||
remove(o:*):* [override]
Removes the specified element from this set if it is present. | CoreSet | ||
![]() | removeAll(c:Collection):Boolean
Removes from this Collection all the elements that are contained in the specified Collection (optional operation). | ArrayCollection | |
![]() | retainAll(c:Collection):Boolean
Retains only the elements in this Collection that are contained in the specified Collection (optional operation). | ArrayCollection | |
size():uint [override]
Returns the number of elements in this set (its cardinality). | CoreSet | ||
toArray():Array [override]
Returns the array representation of all the elements of this Set. | CoreSet | ||
![]() | toSource(indent:int = 0):String
Returns the source code string representation of the object. | ArrayCollection | |
![]() | toString():String
Returns the string representation of this instance. | ArrayCollection | |
| CoreSet | () | Constructor |
public function CoreSet(map:Map, init:* = null)Creates a new CoreSet instance.
You can use an optional parameter in this constructor with different type : an Array or a Collection instance to fill the Set object.
Parametersmap:Map — The Map reference use in the Set. The class can't be initialize i
| |
init:* (default = null) — An optional Array or Collection or Iterable object to fill the collection.
|
| add | () | method |
override public function add(o:*):BooleanAdds the specified element to this set if it is not already present.
Parameters
o:* |
Boolean |
| clear | () | method |
override public function clear():voidRemoves all of the elements from this Set (optional operation).
| clone | () | method |
override public function clone():*Returns a shallow copy of this Set (optional operation).
Returns* — a shallow copy of this Set (optional operation).
|
| contains | () | method |
override public function contains(o:*):Boolean
Returns true if this Set contains the specified element.
Parameters
o:* |
Boolean — true if this Set contains the specified element.
|
| get | () | method |
override public function get(key:*):*Returns the element from this collection at the passed key index.
Parameters
key:* |
* — the element from this collection at the passed key index.
|
| indexOf | () | method |
override public function indexOf(o:*, fromIndex:uint = 0):intReturns the index of an element in the collection.
Parameters
o:* | |
fromIndex:uint (default = 0) |
int — the index of an element in the collection.
|
| isEmpty | () | method |
override public function isEmpty():BooleanReturns true if this set contains no elements.
ReturnsBoolean — true if this set contains no elements.
|
| iterator | () | method |
override public function iterator():IteratorReturns an iterator over the elements in this Set.
ReturnsIterator — an iterator over the elements in this Set.
|
| remove | () | method |
override public function remove(o:*):*Removes the specified element from this set if it is present.
Parameters
o:* |
* |
| size | () | method |
override public function size():uintReturns the number of elements in this set (its cardinality).
Returnsuint — the number of elements in this set (its cardinality).
|
| toArray | () | method |
override public function toArray():ArrayReturns the array representation of all the elements of this Set.
ReturnsArray — the array representation of all the elements of this Set.
|