List
pentaho.lang.List
The List
class is an abstract base class for typed arrays.
Elements of a list must implement the pentaho.lang.IListElement
interface.
AMD Module
require(["pentaho/lang/List"], function(List) { /* code goes here */ });
Extends
Constructor
Name | Description |
---|---|
new List(keyArgs) Abstract | Initializes a list instance. |
Members
Name | Description |
---|---|
elemClass : | Gets the constructor function of the elements held by this list. |
length : | The length of the list. |
Methods
Name | Description |
---|---|
_getElemName() : string Protected | Gets a common name for the elements held by this list. |
add(elem, keyArgs) : pentaho.lang.IListElement | Appends an element to the list and returns it. |
addMany(elems, keyArgs) : number | Appends elements to the list and returns its new length. |
push(elems) : number | Appends elements to the list and returns its new length. |
toSpec() : Array | Creates a specification of this list. |
Constructor Details
new List(keyArgs) Abstract | ||||||
---|---|---|---|---|---|---|
Initializes a list instance. Note that because a Concrete Source: javascript/web/pentaho/lang/List.js, line 25
|
Members Details
elemClass: |
---|
Gets the constructor function of the elements held by this list. This class must implement the |
length: |
---|
The length of the list. |
Methods Details
_getElemName() : string Protected | ||||
---|---|---|---|---|
Gets a common name for the elements held by this list. The default implementation returns the value of Source: javascript/web/pentaho/lang/List.js, line 94
|
add(elem, keyArgs) : pentaho.lang.IListElement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Appends an element to the list and returns it. The value specified in argument Source: javascript/web/pentaho/lang/List.js, line 163
|
addMany(elems, keyArgs) : number | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Appends elements to the list and returns its new length. The values specified in This method allows adding elements to the list using custom options (keyword arguments). Contrast with method Source: javascript/web/pentaho/lang/List.js, line 144
|
push(elems) : number | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Appends elements to the list and returns its new length. The values specified in This method adds elements to the list using default options. Use one of Source: javascript/web/pentaho/lang/List.js, line 121
|
toSpec() : Array | ||||
---|---|---|---|---|
Creates a specification of this list. A list specification is an array containing the specifications of each of its elements. If the element's class does not implement Source: javascript/web/pentaho/lang/List.js, line 249
|