Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
VectorUtil

Package | mx.utils
Class | public class VectorUtil
Inheritance | VectorUtil Object

Public Methods

| Method | Defined By
--- | --- | ---
|  | getFirstItem(v:Vector.<int>):int [static] Given a Vector, returns the value of the first item, or -1 if there are no items in the Vector; | VectorUtil
|  | toArrayInt(v:Vector.<int>):Array [static] | VectorUtil
|  | toArrayObject(v:Vector.<Object>):Array [static] | VectorUtil

Method Detail

getFirstItem | () | method

`public static function getFirstItem(v:Vector.<int>):int`

Given a Vector, returns the value of the first item, or -1 if there are no items in the Vector;

Parameters

| `v:Vector.<int>`

Returns

| `int`

toArrayInt | () | method |

`public static function toArrayInt(v:Vector.<int>):Array`

Parameters

| `v:Vector.<int>`

Returns

| `Array`

toArrayObject | () | method |

`public static function toArrayObject(v:Vector.<Object>):Array`

Parameters

| `v:Vector.<Object>`

Returns

| `Array`

Wed Nov 15 2017, 09:50 AM +01:00