套件 | com.adobe.fiber.runtime.lib |
類別 | public class CollectionFunc |
繼承 | CollectionFunc Object |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
方法 | 定義自 | ||
---|---|---|---|
[靜態]
Returns the average of a collection of numeric values. | CollectionFunc | ||
[靜態]
Returns the maximum value in a collection of numbers. | CollectionFunc | ||
[靜態]
Returns the minimum value in a collection of numbers. | CollectionFunc | ||
[靜態]
Returns the total of all numbers in a collection. | CollectionFunc | ||
[靜態]
Checks if a collection contains a given item. | CollectionFunc | ||
[靜態]
Returns the number of elements (the size) of a collection. | CollectionFunc | ||
指出物件是否有已定義的指定屬性。 | Object | ||
[靜態]
Checks if a collection is empty. | CollectionFunc | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
[靜態]
Given a value and a sorted list of values, returns number of list items less than the value. | CollectionFunc | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
[靜態]
Returns the size of a collection. | CollectionFunc | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
collectionAvg | () | 方法 |
public static function collectionAvg(c:ArrayCollection):Number
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the average of a collection of numeric values. If size of the collection is 0 or the collection is null, 0 is returned.
參數
c:ArrayCollection — Collection
|
Number — The average
|
collectionMax | () | 方法 |
public static function collectionMax(c:ArrayCollection):Number
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the maximum value in a collection of numbers. If size of the collection is 0 or the collection is null, 0 is returned.
參數
c:ArrayCollection — Collection containing Number values
|
Number — Largest value in the collection
|
collectionMin | () | 方法 |
public static function collectionMin(c:ArrayCollection):Number
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the minimum value in a collection of numbers. If size of the collection is 0 or the collection is null, 0 is returned.
參數
c:ArrayCollection — Collection containing Number values
|
Number — Smallest value in the collection
|
collectionSum | () | 方法 |
public static function collectionSum(c:ArrayCollection):Number
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the total of all numbers in a collection. If size of the collection is 0 or the collection is null, 0 is returned.
參數
c:ArrayCollection — Collection
|
Number — Sum of the collection
|
contains | () | 方法 |
public static function contains(c:ArrayCollection, item:Object):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Checks if a collection contains a given item. If the collection is empty, it doesn't contain the item. If the item is null or undefined it can still be contained in the collection.
參數
c:ArrayCollection — Collection
| |
item:Object — Object to test
|
Boolean — true if item is contained in collection c
|
count | () | 方法 |
public static function count(collection:ArrayCollection):int
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 4.5 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the number of elements (the size) of a collection. Equivalent to sizeof.
參數
collection:ArrayCollection — The collection
|
int — Size of collection
|
isEmpty | () | 方法 |
public static function isEmpty(collection:ArrayCollection):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Checks if a collection is empty. If collection does not exist, it is empty.
參數
collection:ArrayCollection — Collection
|
Boolean — true if collection is empty
|
part | () | 方法 |
public static function part(value:Object, list:ArrayCollection):int
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Given a value and a sorted list of values, returns number of list items less than the value. (If not sorted, returns the length of the list prefix made up of items less than value.)
For Example, given a collection C, containing [10, 20, 30], the call part(20, C) returns 1 as there is a single value (10) in the collection less than 20.
參數
value:Object — Value to search for
| |
list:ArrayCollection — Sorted collection
|
int — Number of entries in the list with values less than value
|
sizeof | () | 方法 |
public static function sizeof(collection:ArrayCollection):int
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Data Services for Java EE 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns the size of a collection. Equivalent to count.
參數
collection:ArrayCollection — The collection
|
int — Size of collection
|
Tue Jun 12 2018, 03:47 PM Z