ActionScript® 3.0 — dokumentacja dla platformy Adobe® Flash®
Strona główna  |  Ukryj listę pakietów i klas |  Pakiety  |  Klasy  |  Nowości  |  Indeks  |  Dodatki  |  Dlaczego język angielski?
Filtry: Pobieranie danych z serwera...
Pobieranie danych z serwera...
com.adobe.fiber.runtime.lib 

CollectionFunc  - AS3 ADEP Data Services

Pakietcom.adobe.fiber.runtime.lib
Klasapublic class CollectionFunc
DziedziczenieCollectionFunc Inheritance Object

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: 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.



Właściwości publiczne
 WłaściwośćZdefiniowane przez
 Inheritedconstructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu.
Object
Metody publiczne
 MetodaZdefiniowane przez
  
[statyczny] Returns the average of a collection of numeric values.
CollectionFunc
  
[statyczny] Returns the maximum value in a collection of numbers.
CollectionFunc
  
[statyczny] Returns the minimum value in a collection of numbers.
CollectionFunc
  
[statyczny] Returns the total of all numbers in a collection.
CollectionFunc
  
[statyczny] Checks if a collection contains a given item.
CollectionFunc
  
[statyczny] Returns the number of elements (the size) of a collection.
CollectionFunc
 Inherited
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość.
Object
  
[statyczny] Checks if a collection is empty.
CollectionFunc
 Inherited
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr.
Object
  
[statyczny] Given a value and a sorted list of values, returns number of list items less than the value.
CollectionFunc
 Inherited
Wskazuje, czy określona właściwość istnieje i jest przeliczalna.
Object
 Inherited
Ustawia dostępność właściwości dynamicznej używanej w pętlach.
Object
  
[statyczny] Returns the size of a collection.
CollectionFunc
 Inherited
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych.
Object
 Inherited
Zwraca ciąg reprezentujący określony obiekt.
Object
 Inherited
Zwraca pierwotną wartość dla określonego obiektu.
Object
Szczegół metody

collectionAvg

()metoda
public static function collectionAvg(c:ArrayCollection):Number

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: 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.

Parametry

c:ArrayCollection — Collection

Zwraca
Number — The average

collectionMax

()metoda 
public static function collectionMax(c:ArrayCollection):Number

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: 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.

Parametry

c:ArrayCollection — Collection containing Number values

Zwraca
Number — Largest value in the collection

collectionMin

()metoda 
public static function collectionMin(c:ArrayCollection):Number

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: 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.

Parametry

c:ArrayCollection — Collection containing Number values

Zwraca
Number — Smallest value in the collection

collectionSum

()metoda 
public static function collectionSum(c:ArrayCollection):Number

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: 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.

Parametry

c:ArrayCollection — Collection

Zwraca
Number — Sum of the collection

contains

()metoda 
public static function contains(c:ArrayCollection, item:Object):Boolean

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 4.5
Wersje środowiska wykonawczego: 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.

Parametry

c:ArrayCollection — Collection
 
item:Object — Object to test

Zwraca
Boolean — true if item is contained in collection c

count

()metoda 
public static function count(collection:ArrayCollection):int

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 4.5
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Returns the number of elements (the size) of a collection. Equivalent to sizeof.

Parametry

collection:ArrayCollection — The collection

Zwraca
int — Size of collection

isEmpty

()metoda 
public static function isEmpty(collection:ArrayCollection):Boolean

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Checks if a collection is empty. If collection does not exist, it is empty.

Parametry

collection:ArrayCollection — Collection

Zwraca
Boolean — true if collection is empty

part

()metoda 
public static function part(value:Object, list:ArrayCollection):int

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: 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.

Parametry

value:Object — Value to search for
 
list:ArrayCollection — Sorted collection

Zwraca
int — Number of entries in the list with values less than value

sizeof

()metoda 
public static function sizeof(collection:ArrayCollection):int

Wersja języka: ActionScript 3.0
Wersja produktu: Adobe Digital Enterprise Platform Data Services for Java EE 3
Wersje środowiska wykonawczego: Flash Player 9, AIR 1.1

Returns the size of a collection. Equivalent to count.

Parametry

collection:ArrayCollection — The collection

Zwraca
int — Size of collection




[ X ]Dlaczego język angielski?
Treść dokumentacji języka ActionScript 3.0 wyświetlana w języku angielskim

Niektóre części dokumentacji języka ActionScript 3.0 nie są przetłumaczone na poszczególne języki. Gdy element nie jest przetłumaczony na dany język, jest wyświetlany tekst angielski. Na przykład opis klasy ga.controls.HelpBox nie jest przetłumaczony na żaden dodatkowy język. Z tego powodu polska wersja dokumentacji zawiera opis klasy ga.controls.HelpBox w języku angielskim.