Package org.apache.calcite.runtime
Interface ImmutablePairList<T,U>
- Type Parameters:
T
- First typeU
- Second type
- All Superinterfaces:
Collection<Map.Entry<T,
,U>> Iterable<Map.Entry<T,
,U>> List<Map.Entry<T,
,U>> PairList<T,
U>
Immutable list of pairs.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.runtime.PairList
PairList.Builder<T,
U>, PairList.Helper, PairList.IndexedBiConsumer<T, U> -
Method Summary
Modifier and TypeMethodDescriptionstatic <@NonNull T,
@NonNull U>
ImmutablePairList<T,U> Creates an ImmutablePairList whose contents are a copy of a given collection.static <T,
U> PairList<T, U> Creates an ImmutablePairList with one or more entries.default ImmutablePairList<T,
U> Returns an ImmutablePairList whose contents are the same as this PairList.static <T,
U> ImmutablePairList<T, U> of()
Creates an empty ImmutablePairList.static <T,
U> ImmutablePairList<T, U> of
(T t, U u) Creates a singleton ImmutablePairList.subList
(int fromIndex, int toIndex) Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray
-
Method Details
-
of
Creates an empty ImmutablePairList. -
of
Creates a singleton ImmutablePairList. -
copyOf
Creates an ImmutablePairList with one or more entries. -
copyOf
static <@NonNull T,@NonNull U> ImmutablePairList<T,U> copyOf(Iterable<? extends Map.Entry<@NonNull T, @NonNull U>> iterable) Creates an ImmutablePairList whose contents are a copy of a given collection. -
immutable
Description copied from interface:PairList
Returns an ImmutablePairList whose contents are the same as this PairList. -
subList
-