|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.6.0) E12046-07 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--org.ecmascript.object.Array
public class Array extends Object
[]
.
Field Summary |
|
---|---|
public Number |
|
Fields inherited from org.ecmascript.object.Object |
constructor, prototype |
Constructor Summary |
|
---|---|
public |
Method Summary |
|
---|---|
public Array |
|
public String |
|
public Object |
|
public Number |
|
public Array |
|
public Object |
|
public Number |
|
public Array |
|
public Number |
|
public String |
|
public String |
|
public Number |
Field Detail |
---|
public Number length
Constructor Detail |
---|
public Array(Object... args)
[]
.args |
- | zero or more initial values for the array |
Method Detail |
---|
public Array concat(Array... args)
args |
- | one or more arrays to concatenate with this array |
Array
- a copy of the joined Array
spublic String join(String separator)
separator |
- | optional separator to add between each element |
String
- a string containing all of the elements in the array separated by the optional separatorpublic Object pop()
Object
- the last element of the array or undefined if emptypush(Object...)
public Number push(Object... args)
args |
- | one or more new elements to add to the end of the array |
Number
- the new length of the arrayunshift(Object...)
public Array reverse()
Array
- the arraypublic Object shift()
Object
- the first element of the array or undefined if emptypop()
public Number slice(Number start,
Number end)
start |
- | the starting index of the subsection. If negative, the index will be counted from the end of the array. |
end |
- | optional ending index of the subsection. If not specified, all elements starting from start will be selected. |
Number
- the new length of the arraypublic Array sort(Function sortBy)
sortBy
function.sortBy |
- | optional function with two parameters that returns a Number that is positive if the first parameter is larger than the second parameter, negative for the reverse comparison, or zero if the two are equal. If not specified, the sort is alphabetical. |
Array
- the arraypublic Number splice(Number index,
Number removeCount,
Object... args)
index |
- | the index at which to add and remove elements |
removeCount |
- | a non-negative number indicating how many elements to remove at the index |
args |
- | one or more new elements to add to the array |
Number
- the new length of the arraypublic String toSource()
String
- a JSON representation of the arraypublic String toString()
String
- a comma-separated listing of the element in the arraypublic Number unshift(Object... args)
args |
- | one or more new elements to add to the array |
Number
- the new length of the arraypush(Object...)
|
Oracle Fusion Middleware Javascript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1.6.0) E12046-07 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |