Package dev.cel.common.values
Class ListValue<E extends CelValue>
- java.lang.Object
-
- dev.cel.common.values.CelValue
-
- dev.cel.common.values.ListValue<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
- Direct Known Subclasses:
ImmutableListValue
@Immutable public abstract class ListValue<E extends CelValue> extends CelValue implements java.util.List<E>
ListValue is an abstract representation of a generic list containing zero or moreCelValue.All methods that can mutate the list are disallowed.
-
-
Constructor Summary
Constructors Constructor Description ListValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(int index, E element)Deprecated.Unsupported operation.booleanadd(E e)Deprecated.Unsupported operation.booleanaddAll(int index, java.util.Collection<? extends E> newElements)Deprecated.Unsupported operation.booleanaddAll(java.util.Collection<? extends E> c)Deprecated.Unsupported operation.CelTypecelType()The CelType that represents this value.voidclear()Deprecated.Unsupported operation.booleanisZeroValue()Returns true if theCelValue.value()is a zero value for its type.Eremove(int index)Deprecated.Unsupported operation.booleanremove(java.lang.Object o)Deprecated.Unsupported operation.booleanremoveAll(java.util.Collection<?> c)Deprecated.Unsupported operation.voidreplaceAll(java.util.function.UnaryOperator<E> operator)Deprecated.Unsupported operation.booleanretainAll(java.util.Collection<?> c)Deprecated.Unsupported operation.Eset(int index, E element)Deprecated.Unsupported operation.voidsort(@Nullable java.util.Comparator<? super E> c)Deprecated.Unsupported operation.abstract java.util.List<E>value()The underlying value.
-
-
-
Method Detail
-
value
public abstract java.util.List<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).
-
isZeroValue
public boolean isZeroValue()
Description copied from class:CelValueReturns true if theCelValue.value()is a zero value for its type.- Specified by:
isZeroValuein classCelValue
-
celType
public CelType celType()
Description copied from class:CelValueThe CelType that represents this value.
-
clear
@Deprecated public final void clear()
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
retainAll
@Deprecated public final boolean retainAll(java.util.Collection<?> c)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
set
@CanIgnoreReturnValue @Deprecated public final E set(int index, E element)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
replaceAll
@Deprecated public final void replaceAll(java.util.function.UnaryOperator<E> operator)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
sort
@Deprecated public final void sort(@Nullable java.util.Comparator<? super E> c)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
add
@Deprecated public final void add(int index, E element)Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
add
@Deprecated public final boolean add(E e)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
addAll
@CanIgnoreReturnValue @Deprecated public final boolean addAll(int index, java.util.Collection<? extends E> newElements)Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
addAll
@Deprecated public final boolean addAll(java.util.Collection<? extends E> c)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
remove
@CanIgnoreReturnValue @Deprecated public final E remove(int index)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
remove
@Deprecated public final boolean remove(java.lang.Object o)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
removeAll
@Deprecated public final boolean removeAll(java.util.Collection<?> c)
Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the list unmodified.
-
-