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) intstatic booleanjoin()static <S> JSArray<S> of(S... items) pop()intintintintreverse()voidvoidsetLength(int len) shift()slice(int start) slice(int start, int end) sort()sort(JSSortFunction<T> function) splice(int start, int count) intintintintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getLengthin interfaceJSArrayReader<T>
-
get
- Specified by:
getin interfaceJSArrayReader<T>
-
create
Deprecated. -
create
Deprecated. -
isArray
-
of
-