Package com.intuit.karate.graal
Class JsList
- java.lang.Object
-
- com.intuit.karate.graal.JsList
-
- All Implemented Interfaces:
Iterable,Collection,List,org.graalvm.polyglot.proxy.Proxy,org.graalvm.polyglot.proxy.ProxyArray,org.graalvm.polyglot.proxy.ProxyIterable
public class JsList extends Object implements org.graalvm.polyglot.proxy.ProxyArray, List
- Author:
- pthomas3
-
-
Constructor Summary
Constructors Constructor Description JsList(Collection collection)JsList(List list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Object element)booleanadd(Object e)booleanaddAll(int index, Collection c)booleanaddAll(Collection c)voidclear()booleancontains(Object o)booleancontainsAll(Collection c)Objectget(int index)Objectget(long index)ListgetList()longgetSize()intindexOf(Object o)booleanisEmpty()Iteratoriterator()intlastIndexOf(Object o)ListIteratorlistIterator()ListIteratorlistIterator(int index)Objectremove(int index)booleanremove(long index)booleanremove(Object o)booleanremoveAll(Collection c)booleanretainAll(Collection c)Objectset(int index, Object element)voidset(long index, org.graalvm.polyglot.Value value)intsize()ListsubList(int fromIndex, int toIndex)Object[]toArray()Object[]toArray(Object[] a)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
EMPTY
public static final JsList EMPTY
-
-
Constructor Detail
-
JsList
public JsList(Collection collection)
-
JsList
public JsList(List list)
-
-
Method Detail
-
getList
public List getList()
-
get
public Object get(long index)
- Specified by:
getin interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
set
public void set(long index, org.graalvm.polyglot.Value value)- Specified by:
setin interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
getSize
public long getSize()
- Specified by:
getSizein interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
remove
public boolean remove(long index)
- Specified by:
removein interfaceorg.graalvm.polyglot.proxy.ProxyArray
-
size
public int size()
- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
iterator
public Iterator iterator()
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
add
public boolean add(Object e)
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
addAll
public boolean addAll(Collection c)
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
public boolean addAll(int index, Collection c)
-
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
clear
public void clear()
- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList
-
listIterator
public ListIterator listIterator()
- Specified by:
listIteratorin interfaceList
-
listIterator
public ListIterator listIterator(int index)
- Specified by:
listIteratorin interfaceList
-
-