Class LuaArray<V>
java.lang.Object
org.infinispan.server.resp.scripting.LuaArray<V>
- All Implemented Interfaces:
Iterable<V>,Collection<V>
A read-only collection implementation that maps lua tables. Only size and iterations are supported.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends V> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
LuaArray
public LuaArray(party.iroiro.luajava.Lua lua, int index) -
LuaArray
protected LuaArray(party.iroiro.luajava.Lua lua, int index, int size)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<V>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<V>
-
contains
- Specified by:
containsin interfaceCollection<V>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<V>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<V>
-
add
- Specified by:
addin interfaceCollection<V>
-
remove
- Specified by:
removein interfaceCollection<V>
-
containsAll
- Specified by:
containsAllin interfaceCollection<V>
-
addAll
- Specified by:
addAllin interfaceCollection<V>
-
removeAll
- Specified by:
removeAllin interfaceCollection<V>
-
retainAll
- Specified by:
retainAllin interfaceCollection<V>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<V>
-