E - The type of elements contained in the underlying listI - The immutable data variantM - The mutable data variantpublic interface ImmutableListData<E,I extends ImmutableListData<E,I,M>,M extends ListData<E,M,I>> extends ImmutableDataManipulator<I,M>
ListData that can be queried, but not
changed or mutated.| Modifier and Type | Method and Description |
|---|---|
List<E> |
asList()
Gets the
List value itself from this manipulator. |
default boolean |
contains(E element)
Returns whether the underlying
List contains the provided
element. |
default Optional<E> |
get(int index)
Gets an element of type
E by the provided index. |
ImmutableListValue<E> |
getListValue()
Gets the
ImmutableListValue of this ImmutableListData. |
asMutable, copy, with, withgetContentVersion, toContainerImmutableListValue<E> getListValue()
ImmutableListValue of this ImmutableListData.List<E> asList()
List value itself from this manipulator.ImmutableListValuedefault Optional<E> get(int index)
E by the provided index.index - The index to get the value atList.get(int)default boolean contains(E element)
List contains the provided
element.element - The element to checkList.contains(Object)