| Package | org.servebox.commons.collection |
| Interface | public interface ISortedSet extends ISet, ICollection, IBasicObject, IIterable |
| Implementors | SortedSet |
| Method | Defined by | ||
|---|---|---|---|
![]() |
add(o:IBasicObject):Boolean
Adds the specified element to the collection.
| ICollection | |
![]() |
addAll(c:ICollection):Boolean
Adds the specified elements to the collection.
| ICollection | |
![]() |
clear():void
Empties the collection.
| ICollection | |
![]() |
contains(o:IBasicObject):Boolean
Indicates whether the collection contains the specified element.
| ICollection | |
![]() |
containsAll(c:ICollection):Boolean
Indicates whether the collection contains the specified elements.
| ICollection | |
![]() |
equals(value:IBasicObject):Boolean
Object comparison mechanism.
| IBasicObject | |
|
Retrieves the first element in this set.
| ISortedSet | ||
![]() |
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
| ICollection | |
![]() |
hashCode():int
Returns the hashcode of the object.
| IBasicObject | |
|
Retrieves the part of this set whose elements are less than (or equal to, if inclusive is true) toElement.
| ISortedSet | ||
![]() |
isEmpty():Boolean
Indicates whether the collection contains elements.
| ICollection | |
![]() |
Retrieves an iterator over a set of objects.
| IIterable | |
|
Retrieves the last element in this set.
| ISortedSet | ||
![]() |
remove(o:IBasicObject):Boolean
Removes the specified element from the collection.
| ICollection | |
![]() |
removeAll(c:ICollection):Boolean
Removes the specified elements from the collection.
| ICollection | |
![]() |
size():int
The number of elements in the collection.
| ICollection | |
|
subSet(fromElement:IBasicObject, toElement:IBasicObject, fromInclusive:Boolean = false, toInclusive:Boolean = false):SortedSet
Retrieves the part of this set whose elements range from fromElement to toElement.
| ISortedSet | ||
|
Retrieves the part of this set whose elements are greater than or equal to (unless inclusive is false) fromElement.
| ISortedSet | ||
![]() |
toArray():Array
Retrieves the elements of the collection into an Array instance.
| ICollection | |
![]() |
toString():String
Returns the string representation of the specified object.
| IBasicObject | |
| 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 |
| subSet | () | method |
public function subSet(fromElement:IBasicObject, toElement:IBasicObject, fromInclusive:Boolean = false, toInclusive:Boolean = false):SortedSetRetrieves the part of this set whose elements range from fromElement to toElement.
ParametersfromElement:IBasicObject |
|
toElement:IBasicObject |
|
fromInclusive:Boolean (default = false) |
|
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 |