| Package | org.servebox.commons.collection |
| Interface | public interface ICollection extends IBasicObject, IIterable |
| Subinterfaces | IList, ISet |
| Implementors | AbstractCollection |
| 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 | |
|
fromArray(ar:Array):void
Sets the collection content using an Array of elements.
| ICollection | ||
![]() |
hashCode():int
Returns the hashcode of the object.
| IBasicObject | |
|
isEmpty():Boolean
Indicates whether the collection contains elements.
| ICollection | ||
![]() |
Retrieves an iterator over a set of objects.
| IIterable | |
|
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 | ||
|
toArray():Array
Retrieves the elements of the collection into an Array instance.
| ICollection | ||
![]() |
toString():String
Returns the string representation of the specified object.
| IBasicObject | |
| add | () | method |
public function add(o:IBasicObject):BooleanAdds the specified element to the collection.
Parameterso:IBasicObject |
Boolean |
| addAll | () | method |
public function addAll(c:ICollection):BooleanAdds the specified elements to the collection.
Parametersc:ICollection |
Boolean |
| clear | () | method |
public function clear():voidEmpties the collection.
| contains | () | method |
public function contains(o:IBasicObject):BooleanIndicates whether the collection contains the specified element.
Parameterso:IBasicObject |
Boolean |
| containsAll | () | method |
public function containsAll(c:ICollection):BooleanIndicates whether the collection contains the specified elements.
Parametersc:ICollection |
Boolean |
| fromArray | () | method |
public function fromArray(ar:Array):voidSets the collection content using an Array of elements.
Parametersar:Array |
| isEmpty | () | method |
public function isEmpty():BooleanIndicates whether the collection contains elements.
ReturnsBoolean |
| remove | () | method |
public function remove(o:IBasicObject):BooleanRemoves the specified element from the collection.
Parameterso:IBasicObject |
Boolean |
| removeAll | () | method |
public function removeAll(c:ICollection):BooleanRemoves the specified elements from the collection.
Parametersc:ICollection |
Boolean |
| size | () | method |
public function size():intThe number of elements in the collection.
Returnsint |
| toArray | () | method |
public function toArray():ArrayRetrieves the elements of the collection into an Array instance.
ReturnsArray |