| Package | com.addicted2flash.util |
| Interface | public interface ISortedSet extends ISet, ICollection, IDisposable |
| Implementors | SortedArraySet |
| Method | Defined by | ||
|---|---|---|---|
![]() |
add(o:*):void
Appends the specified element to the end of this list (optional operation).
| ICollection | |
![]() |
addAll(c:ICollection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| ICollection | |
![]() |
clear():void
Removes all of the elements from this list (optional operation).
| ICollection | |
![]() |
Returns a copy of the
ICollection. | ICollection | |
|
Returns the comparator used to order the elements in this set.
| ISortedSet | ||
![]() |
contains(o:*):Boolean
Returns true if this list contains the specified element.
| ICollection | |
![]() |
containsAll(c:ICollection):Boolean
Returns true if this collection contains all of the elements in the specified collection.
| ICollection | |
![]() |
dispose():void
free memory for garbage collection.
| IDisposable | |
|
first():*
Returns the first (lowest) element currently in this set.
| ISortedSet | ||
![]() |
getAt(i:int):*
Returns the element at the specified position in this collection.
| ICollection | |
|
headSortedSet(toElement:*):ISortedSet
Returns a view of the portion of this set whose elements are strictly less than toElement.
| ISortedSet | ||
![]() |
isEmpty():Boolean
Returns true if this list contains no elements.
| ICollection | |
![]() |
Returns an iterator over the elements in this list.
| ICollection | |
|
last():*
Returns the last (highest) element currently in this set.
| ISortedSet | ||
![]() |
remove(o:*):Boolean
Removes the first occurrence in this list of the specified element (optional operation).
| ICollection | |
![]() |
removeAll(c:ICollection):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation)
| ICollection | |
![]() |
size():int
Returns the number of elements in this list.
| ICollection | |
|
subSortedSet(fromElement:*, toElement:*):ISortedSet
Returns a view of the portion of this set whose elements range from fromElement, inclusive,
to toElement, exclusive.
| ISortedSet | ||
|
tailSortedSet(fromElement:*):ISortedSet
Returns a view of the portion of this set whose elements are greater than or equal to fromElement.
| ISortedSet | ||
![]() |
toArray():Array
Converts the collection into an array.
| ICollection | |
| comparator | () | method |
public function comparator():IComparatorReturns the comparator used to order the elements in this set.
ReturnsIComparator —
the comparator used to order the elements in this set.
|
| first | () | method |
public function first():*Returns the first (lowest) element currently in this set.
Returns* — the first (lowest) element currently in this set (or null if set is empty)
|
| headSortedSet | () | method |
public function headSortedSet(toElement:*):ISortedSetReturns a view of the portion of this set whose elements are strictly less than toElement. The returned set is backed by this set, so changes in the returned set are reflected in this set, and vice-versa. The returned set supports all optional set operations that this set supports.
ParameterstoElement:* — high endpoint (exclusive) of the returned set
|
ISortedSet —
a view of the portion of this set whose elements are strictly less than toElement (return empty
sorted set, if toElement doesn't exist)
|
| last | () | method |
public function last():*Returns the last (highest) element currently in this set.
Returns* — the last (highest) element currently in this set (or null if set is empty)
|
| subSortedSet | () | method |
public function subSortedSet(fromElement:*, toElement:*):ISortedSetReturns a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive. (If fromElement and toElement are equal, the returned set is empty.) The returned set is backed by this set, so changes in the returned set are reflected in this set, and vice-versa. The returned set supports all optional set operations that this set supports.
ParametersfromElement:* — low endpoint (inclusive) of the returned set
|
|
toElement:* — high endpoint (exclusive) of the returned set
|
ISortedSet —
a view of the portion of this set whose elements range from fromElement, inclusive, to toElement, exclusive
|
| tailSortedSet | () | method |
public function tailSortedSet(fromElement:*):ISortedSetReturns a view of the portion of this set whose elements are greater than or equal to fromElement. The returned set is backed by this set, so changes in the returned set are reflected in this set, and vice-versa. The returned set supports all optional set operations that this set supports.
ParametersfromElement:* — low endpoint (inclusive) of the returned set
|
ISortedSet —
a view of the portion of this set whose elements are greater than or equal to fromElement
|