- All Superinterfaces:
Collection<Q>
,Iterable<Q>
,List<Q>
,QOM.UnmodifiableCollection<Q>
,QueryPart
,SequencedCollection<Q>
,Serializable
- Enclosing class:
QOM
public static sealed interface QOM.UnmodifiableList<Q extends QueryPart>
extends QOM.UnmodifiableCollection<Q>, List<Q>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R> R
Collect the contents of this list using aCollector
.default @NotNull QOM.UnmodifiableList
<Q> $concat
(Collection<? extends Q> other) Concatenate a collection to this UnmodifiableList, returning a new UnmodifiableList from the combined data.default Q
$first()
Access the first element if available.default Q
$last()
Access the last element if available.default @NotNull QOM.UnmodifiableList
<Q> $remove
(int position) Return a new UnmodifiableList without the element at the argument position.default @NotNull QOM.UnmodifiableList
<Q> Return a new UnmodifiableList without the$first()
element.default @NotNull QOM.UnmodifiableList
<Q> Return a newQOM.UnmodifiableList
without the$last()
element.default @NotNull QOM.UnmodifiableList
<Q> Return a newQOM.UnmodifiableList
with a new, replaced value at the argument position.default @NotNull QOM.UnmodifiableList
<Q> $setAll
(int position, Collection<? extends Q> newValues) Return a newQOM.UnmodifiableList
with a new, replaced set of values at the argument position.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
$collect
Collect the contents of this list using aCollector
. -
$concat
@NotNull @CheckReturnValue default @NotNull QOM.UnmodifiableList<Q> $concat(Collection<? extends Q> other) Concatenate a collection to this UnmodifiableList, returning a new UnmodifiableList from the combined data. -
$remove
Return a new UnmodifiableList without the element at the argument position. -
$first
Access the first element if available. -
$last
Access the last element if available. -
$removeFirst
Return a new UnmodifiableList without the$first()
element. -
$removeLast
Return a newQOM.UnmodifiableList
without the$last()
element. -
$set
Return a newQOM.UnmodifiableList
with a new, replaced value at the argument position. -
$setAll
@NotNull @CheckReturnValue default @NotNull QOM.UnmodifiableList<Q> $setAll(int position, Collection<? extends Q> newValues) Return a newQOM.UnmodifiableList
with a new, replaced set of values at the argument position.
-