Package dev.cel.common.values
Class ImmutableListValue<E extends CelValue>
- java.lang.Object
-
- dev.cel.common.values.CelValue
-
- dev.cel.common.values.ListValue<E>
-
- dev.cel.common.values.ImmutableListValue<E>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)static <E extends CelValue>
ImmutableListValue<E>create(java.util.List<E> value)booleanequals(java.lang.Object obj)Eget(int index)inthashCode()intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<E>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<E>listIterator()java.util.ListIterator<E>listIterator(int index)intsize()java.util.List<E>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] a)com.google.common.collect.ImmutableList<E>value()The underlying value.-
Methods inherited from class dev.cel.common.values.ListValue
add, add, addAll, addAll, celType, clear, isZeroValue, remove, remove, removeAll, replaceAll, retainAll, set, sort
-
-
-
-
Method Detail
-
create
public static <E extends CelValue> ImmutableListValue<E> create(java.util.List<E> value)
-
value
public com.google.common.collect.ImmutableList<E> value()
Description copied from class:CelValueThe underlying value. This is typically the Java native value or a derived instance of CelValue (ex: an element in lists or key/value pair in maps).
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<E> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
get
public E get(int index)
-
indexOf
public int indexOf(java.lang.Object o)
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
listIterator
public java.util.ListIterator<E> listIterator()
-
listIterator
public java.util.ListIterator<E> listIterator(int index)
-
subList
public java.util.List<E> subList(int fromIndex, int toIndex)
-
hashCode
public int hashCode()
-
-