Package org.teavm.jso.core
Class JSArray<T>
java.lang.Object
org.teavm.jso.core.JSArray<T>
- All Implemented Interfaces:
JSArrayReader<T>
,org.teavm.jso.JSObject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconcat
(JSArrayReader<T> a) concat
(JSArrayReader<T> a, JSArrayReader<T> b) concat
(JSArrayReader<T> a, JSArrayReader<T> b, JSArrayReader<T> c) concat
(JSArrayReader<T> a, JSArrayReader<T> b, JSArrayReader<T> c, JSArrayReader<T> d) static <T> JSArray<T>
create()
Deprecated.static <T> JSArray<T>
create
(int size) Deprecated.get
(int index) int
static boolean
join()
static <S> JSArray<S>
of
(S... items) pop()
int
int
int
int
reverse()
void
void
setLength
(int len) shift()
slice
(int start) slice
(int start, int end) sort()
sort
(JSSortFunction<T> function) splice
(int start, int count) int
int
int
int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.teavm.jso.JSObject
cast
-
Constructor Details
-
JSArray
public JSArray(int size) -
JSArray
public JSArray()
-
-
Method Details
-
set
-
push
-
push
-
push
-
push
-
shift
-
join
-
join
-
concat
-
concat
-
concat
-
concat
public JSArray<T> concat(JSArrayReader<T> a, JSArrayReader<T> b, JSArrayReader<T> c, JSArrayReader<T> d) -
pop
-
unshift
-
unshift
-
unshift
-
unshift
-
slice
-
slice
-
reverse
-
sort
-
sort
-
splice
-
splice
-
splice
-
splice
-
splice
-
setLength
public void setLength(int len) -
getLength
public int getLength()- Specified by:
getLength
in interfaceJSArrayReader<T>
-
get
- Specified by:
get
in interfaceJSArrayReader<T>
-
create
Deprecated. -
create
Deprecated. -
isArray
-
of
-