Package jp.vmi.script
Class JSList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
jp.vmi.script.JSList<E>
- Type Parameters:
E- the type of array element.
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
public abstract class JSList<E> extends AbstractList<E>
Wrapper for JavaScript array object.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors Constructor Description JSList() -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
JSList
public JSList()
-
-
Method Details
-
unwrap
Unwrap object.- Returns:
- unwrapped object.
-
toList
JavaScript object to List.- Type Parameters:
E- the type of list element.- Parameters:
engine- script engine.object- JavaScript object.- Returns:
- List object.
-