Top Description Fields Constructors Methods
org.jooq.impl

pack-priv sealed Class QueryPartListView<T extends org.jooq.QueryPart>

extends QueryPartCollectionView<T extends QueryPart>
implements QOM.UnmodifiableList<T extends QueryPart>
permits QueryPartList<T extends QueryPart>
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UnmodifiableList, java.util.List, java.util.SequencedCollection, java.util.Collection, java.lang.Iterable, org.jooq.impl.QOM.UnmodifiableCollection, org.jooq.QueryPart, java.io.Serializable
Known Direct Subclasses
org.jooq.impl.QueryPartList
Static Imports
java.util.Arrays.asList

A List view, delegating all calls to a wrapped list, but acting like a QueryPart.
Author
Lukas Eder

Field Summary

Inherited from org.jooq.impl.QueryPartCollectionView:
mapperqualifyseparatorwrapped

Constructor Summary

AccessConstructor and Description
pack-priv
QueryPartListView(T... wrappedList)

pack-priv
QueryPartListView(List<T> wrappedList)

Method Summary

Modifier and TypeMethod and Description
public final void
add(int
index at which the specified element is to be inserted
index
,
T
element to be inserted
element
)

Implements java.util.List.add.

Inserts the specified element at the specified position in this list (optional operation).
public final boolean
addAll(int
index at which to insert the first element from the specified collection
index
,
Collection<? extends T>
collection containing elements to be added to this list
c
)

Implements java.util.List.addAll.

Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
public boolean
equals(Object
the object to be compared for equality with this list
that
)

Overrides org.jooq.impl.QueryPartCollectionView.equals.

Implements org.jooq.QueryPart.equals, java.util.Collection.equals, java.util.List.equals.

Compares the specified object with this list for equality.
public final T
get(int
index of the element to return
index
)

Implements java.util.List.get.

Returns the element at the specified position in this list.
public final int
indexOf(Object
element to search for
o
)

Implements java.util.List.indexOf.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
public final int
lastIndexOf(Object
element to search for
o
)

Implements java.util.List.lastIndexOf.

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
public final ListIterator<T>
listIterator()

Implements java.util.List.listIterator.

Returns a list iterator over the elements in this list (in proper sequence).
public final ListIterator<T>
listIterator(int
index of the first element to be returned from the list iterator (by a call to next)
index
)

Implements java.util.List.listIterator.

Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.
pack-priv QueryPartListView<T>
map(Function<? super T, ? extends T> newMapper)

Overrides org.jooq.impl.QueryPartCollectionView.map.

pack-priv QueryPartListView<T>
map(ObjIntFunction<? super T, ? extends T> newMapper)

Overrides org.jooq.impl.QueryPartCollectionView.map.

pack-priv QueryPartListView<T>
public final T
remove(int
the index of the element to be removed
index
)

Implements java.util.List.remove.

Removes the element at the specified position in this list (optional operation).
pack-priv QueryPartListView<T>
public final T
set(int
index of the element to replace
index
,
T
element to be stored at the specified position
element
)

Implements java.util.List.set.

Replaces the element at the specified position in this list with the specified element (optional operation).
public final List<T>
subList(int
low endpoint (inclusive) of the subList
fromIndex
,
int
high endpoint (exclusive) of the subList
toIndex
)

Implements java.util.List.subList.

Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.
protected void
toSQLEmptyList(Context<?> context)

Overrides org.jooq.impl.QueryPartCollectionView.toSQLEmptyList.

Subclasses may override this method
pack-priv static final <T extends QueryPart> QueryPartListView<T>
wrap(T... wrappedList)

pack-priv static final <T extends QueryPart> QueryPartListView<T>
wrap(List<T> wrappedList)

pack-priv List<T>
Inherited from org.jooq.impl.QueryPartCollectionView:
acceptacceptElementaddaddAlladdAll0canAddclearcontainscontainsAllhashCodeisEmptyisSimpleiteratorremoveremoveAllrendersContentrendersSeparatorretainAllsizetoArraytoArraywrap

Constructor Detail

QueryPartListViewback to summary
pack-priv QueryPartListView(T... wrappedList)
Annotations
@SafeVarargs
QueryPartListViewback to summary
pack-priv QueryPartListView(List<T> wrappedList)

Method Detail

addback to summary
public final void add(int index, T element)

Implements java.util.List.add.

Doc from java.util.List.add.

Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Parameters
index:int

index at which the specified element is to be inserted

element:T

element to be inserted

Annotations
@Override
addAllback to summary
public final boolean addAll(int index, Collection<? extends T> c)

Implements java.util.List.addAll.

Doc from java.util.List.addAll.

Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)

Parameters
index:int

index at which to insert the first element from the specified collection

c:Collection<? extends T>

collection containing elements to be added to this list

Returns:boolean

true if this list changed as a result of the call

Annotations
@Override
equalsback to summary
public boolean equals(Object that)

Overrides org.jooq.impl.QueryPartCollectionView.equals.

Implements org.jooq.QueryPart.equals, java.util.Collection.equals, java.util.List.equals.

Doc from java.util.List.equals.

Compares the specified object with this list for equality. Returns true if and only if the specified object is also a list, both lists have the same size, and all corresponding pairs of elements in the two lists are equal. (Two elements e1 and e2 are equal if Objects.equals(e1, e2).) In other words, two lists are defined to be equal if they contain the same elements in the same order. This definition ensures that the equals method works properly across different implementations of the List interface.

Parameters
that:Object

the object to be compared for equality with this list

Returns:boolean

true if the specified object is equal to this list

Annotations
@Override
getback to summary
public final T get(int index)

Implements java.util.List.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Parameters
index:int

index of the element to return

Returns:T

the element at the specified position in this list

Annotations
@Override
indexOfback to summary
public final int indexOf(Object o)

Implements java.util.List.indexOf.

Doc from java.util.List.indexOf.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. More formally, returns the lowest index i such that Objects.equals(o, get(i)), or -1 if there is no such index.

Parameters
o:Object

element to search for

Returns:int

the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element

Annotations
@Override
lastIndexOfback to summary
public final int lastIndexOf(Object o)

Implements java.util.List.lastIndexOf.

Doc from java.util.List.lastIndexOf.

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. More formally, returns the highest index i such that Objects.equals(o, get(i)), or -1 if there is no such index.

Parameters
o:Object

element to search for

Returns:int

the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element

Annotations
@Override
listIteratorback to summary
public final ListIterator<T> listIterator()

Implements java.util.List.listIterator.

Doc from java.util.List.listIterator.

Returns a list iterator over the elements in this list (in proper sequence).

Returns:ListIterator<T>

a list iterator over the elements in this list (in proper sequence)

Annotations
@Override
listIteratorback to summary
public final ListIterator<T> listIterator(int index)

Implements java.util.List.listIterator.

Doc from java.util.List.listIterator.

Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. The specified index indicates the first element that would be returned by an initial call to next. An initial call to previous would return the element with the specified index minus one.

Parameters
index:int

index of the first element to be returned from the list iterator (by a call to next)

Returns:ListIterator<T>

a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list

Annotations
@Override
mapback to summary
pack-priv QueryPartListView<T> map(Function<? super T, ? extends T> newMapper)

Overrides org.jooq.impl.QueryPartCollectionView.map.

Annotations
@Override
mapback to summary
pack-priv QueryPartListView<T> map(ObjIntFunction<? super T, ? extends T> newMapper)

Overrides org.jooq.impl.QueryPartCollectionView.map.

Annotations
@Override
qualifyback to summary
pack-priv QueryPartListView<T> qualify(boolean newQualify)

Overrides org.jooq.impl.QueryPartCollectionView.qualify.

Annotations
@Override
removeback to summary
public final T remove(int index)

Implements java.util.List.remove.

Doc from java.util.List.remove.

Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

Parameters
index:int

the index of the element to be removed

Returns:T

the element previously at the specified position

Annotations
@Override
separatorback to summary
pack-priv QueryPartListView<T> separator(String newSeparator)

Overrides org.jooq.impl.QueryPartCollectionView.separator.

Annotations
@Override
setback to summary
public final T set(int index, T element)

Implements java.util.List.set.

Doc from java.util.List.set.

Replaces the element at the specified position in this list with the specified element (optional operation).

Parameters
index:int

index of the element to replace

element:T

element to be stored at the specified position

Returns:T

the element previously at the specified position

Annotations
@Override
subListback to summary
public final List<T> subList(int fromIndex, int toIndex)

Implements java.util.List.subList.

Doc from java.util.List.subList.

Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. (If fromIndex and toIndex are equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list.

This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:

list.subList(from, to).clear();
Similar idioms may be constructed for indexOf and lastIndexOf, and all of the algorithms in the Collections class can be applied to a subList.

The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)

Parameters
fromIndex:int

low endpoint (inclusive) of the subList

toIndex:int

high endpoint (exclusive) of the subList

Returns:List<T>

a view of the specified range within this list

Annotations
@Override
toSQLEmptyListback to summary
protected void toSQLEmptyList(Context<?> context)

Overrides org.jooq.impl.QueryPartCollectionView.toSQLEmptyList.

Subclasses may override this method

Annotations
@Override
wrapback to summary
pack-priv static final <T extends QueryPart> QueryPartListView<T> wrap(T... wrappedList)
Annotations
@SafeVarargs
wrapback to summary
pack-priv static final <T extends QueryPart> QueryPartListView<T> wrap(List<T> wrappedList)
wrappedback to summary
pack-priv List<T> wrapped()

Overrides org.jooq.impl.QueryPartCollectionView.wrapped.

Annotations
@Override