Class ImmutableListValue<E extends CelValue>

  • All Implemented Interfaces:
    java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>

    @Immutable
    public final class ImmutableListValue<E extends CelValue>
    extends ListValue<E>
    ImmutableListValue is a representation of an immutable list containing zero or more CelValue.
    • Method Detail

      • value

        public com.google.common.collect.ImmutableList<E> value()
        Description copied from class: CelValue
        The 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).
        Specified by:
        value in class ListValue<E extends CelValue>
      • 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()
        Specified by:
        hashCode in interface java.util.Collection<E extends CelValue>
        Specified by:
        hashCode in interface java.util.List<E extends CelValue>
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<E extends CelValue>
        Specified by:
        equals in interface java.util.List<E extends CelValue>
        Overrides:
        equals in class java.lang.Object