| Package | org.servebox.commons.collection |
| Class | public class SortedSet |
| Inheritance | SortedSet AbstractSet AbstractCollection BasicObject |
| Implements | ISortedSet |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new SortedSet object.
| SortedSet | ||
|
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
| SortedSet | ||
![]() |
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
| AbstractCollection | |
![]() |
clear():void
Empties the collection.
| AbstractCollection | |
![]() |
contains(o:IBasicObject):Boolean
Indicates whether the collection contains the specified element.
| AbstractCollection | |
![]() |
containsAll(c:ICollection):Boolean
Indicates whether the collection contains the specified elements.
| AbstractCollection | |
![]() |
equals(o:IBasicObject):Boolean
Object comparison mechanism.
| AbstractCollection | |
|
Retrieves the first element in this set.
| SortedSet | ||
![]() |
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
| AbstractCollection | |
![]() |
getInstanceId():uint
Generates a unique unsigned integer id at instanciation
| BasicObject | |
![]() |
hashCode():int
Returns the hashcode of the object.
| BasicObject | |
|
Retrieves the part of this set whose elements are less than (or equal to, if inclusive is true) toElement.
| SortedSet | ||
![]() |
isEmpty():Boolean
Indicates whether the collection contains elements.
| AbstractSet | |
![]() |
Retrieves an iterator over a set of objects.
| AbstractCollection | |
|
Retrieves the last element in this set.
| SortedSet | ||
|
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
| SortedSet | ||
![]() |
removeAll(c:ICollection):Boolean
Removes the specified elements from the collection.
| AbstractSet | |
![]() |
size():int
The number of elements in the collection.
| AbstractCollection | |
|
subSet(fromElement:IBasicObject, toElement:IBasicObject, fromInclusive:Boolean = true, toInclusive:Boolean = false):SortedSet
Retrieves the part of this set whose elements range from fromElement to toElement.
| SortedSet | ||
|
Retrieves the part of this set whose elements are greater than or equal to (unless inclusive is false) fromElement.
| SortedSet | ||
![]() |
toArray():Array
Retrieves the elements of the collection into an Array instance.
| AbstractCollection | |
![]() |
toString():String
Returns the string representation of the specified object.
| BasicObject | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
objectIndex(o:IBasicObject):int
| AbstractCollection | |
|
sortList():void
Sorts the inner list according to the comparator instance.
| SortedSet | ||
| SortedSet | () | constructor |
public function SortedSet(collection:ICollection = null, comp:IComparator = null)Creates a new SortedSet object.
Parameterscollection:ICollection (default = null) |
|
comp:IComparator (default = null) |
| add | () | method |
public override function add(o:IBasicObject):BooleanAdds the specified element to the collection.
Parameterso:IBasicObject |
Boolean |
| first | () | method |
| headSet | () | method |
public function headSet(toElement:IBasicObject, inclusive:Boolean = false):SortedSetRetrieves the part of this set whose elements are less than (or equal to, if inclusive is true) toElement.
ParameterstoElement:IBasicObject |
|
inclusive:Boolean (default = false) |
SortedSet |
| last | () | method |
| remove | () | method |
public override function remove(o:IBasicObject):BooleanRemoves the specified element from the collection.
Parameterso:IBasicObject |
Boolean |
| sortList | () | method |
protected function sortList():voidSorts the inner list according to the comparator instance.
| subSet | () | method |
public function subSet(fromElement:IBasicObject, toElement:IBasicObject, fromInclusive:Boolean = true, toInclusive:Boolean = false):SortedSetRetrieves the part of this set whose elements range from fromElement to toElement.
ParametersfromElement:IBasicObject |
|
toElement:IBasicObject |
|
fromInclusive:Boolean (default = true) |
|
toInclusive:Boolean (default = false) |
SortedSet |
| tailSet | () | method |
public function tailSet(fromElement:IBasicObject, inclusive:Boolean = true):SortedSetRetrieves the part of this set whose elements are greater than or equal to (unless inclusive is false) fromElement.
ParametersfromElement:IBasicObject |
|
inclusive:Boolean (default = true) |
SortedSet |