Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
The CollectionFunc class defines the implementations of the expression runtime functions for Collections
for the Adobe application modeling language.
public static function collectionAvg(c:ArrayCollection):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | 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.
Parameters
Returns public static function collectionMax(c:ArrayCollection):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | 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.
Parameters
Returns | Number — Largest value in the collection
|
public static function collectionMin(c:ArrayCollection):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | 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.
Parameters
Returns | Number — Smallest value in the collection
|
public static function collectionSum(c:ArrayCollection):Number
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | 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.
Parameters
Returns | Number — Sum of the collection
|
public static function isEmpty(collection:ArrayCollection):Boolean
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Checks if a collection is empty.
If collection does not exist, it is empty.
Parameters
Returns | Boolean — true if collection is empty
|
public static function part(value:Object, list:ArrayCollection):int
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | 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.
Parameters
Returns | int — Number of entries in the list with values less than value
|
public static function sizeof(collection:ArrayCollection):int
Language Version: | ActionScript 3.0 |
Product Version: | LiveCycle Data Services 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Returns the size of a collection.
Parameters
Returns