| Package | Description |
|---|---|
| java.lang.invoke | |
| java.util |
| Modifier and Type | Method and Description |
|---|---|
List<Class<?>> |
MethodType.parameterList()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
MethodType |
MethodType.appendParameterTypes(List<Class<?>> a)
Deprecated.
|
static MethodHandle |
MethodHandles.dropArguments(MethodHandle a,
int b,
List<Class<?>> c)
Deprecated.
|
MethodType |
MethodType.insertParameterTypes(int a,
List<Class<?>> b)
Deprecated.
|
Object |
MethodHandle.invokeWithArguments(List<?> a)
Deprecated.
|
static MethodType |
MethodType.methodType(Class<?> a,
List<Class<?>> b)
Deprecated.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractList<E>
AbstractList is an abstract implementation of the List interface, optimized
for a backing store which supports random access. |
class |
AbstractSequentialList<E>
AbstractSequentialList is an abstract implementation of the List interface.
|
class |
ArrayList<E>
ArrayList is an implementation of
List, backed by an array. |
class |
LinkedList<E>
LinkedList is an implementation of List, backed by a linked list.
|
class |
Stack<E>
Stack is a Last-In/First-Out(LIFO) data structure which represents a
stack of objects. |
class |
Vector<E>
Vector is a variable size contiguous indexable array of objects.
|
| Modifier and Type | Field and Description |
|---|---|
static List |
Collections.EMPTY_LIST
An empty immutable instance of
List. |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
Arrays.asList(T... array)
Returns a
List of the objects in the specified array. |
static <T> List<T> |
Collections.emptyList()
Returns a type-safe empty, immutable
List. |
static <T> List<T> |
Collections.nCopies(int length,
T object)
Returns a list containing the specified number of the specified element.
|
static <E> List<E> |
Collections.singletonList(E object)
Returns a list containing the specified element.
|
List<E> |
Vector.subList(int start,
int end)
Returns a List of the specified portion of this vector from the start
index to one less than the end index.
|
List<E> |
List.subList(int start,
int end)
Returns a
List of the specified portion of this List from the given start
index to the end index minus one. |
List<E> |
AbstractList.subList(int start,
int end)
Returns a part of consecutive elements of this list as a view.
|
static <T> List<T> |
Collections.synchronizedList(List<T> list)
Returns a wrapper on the specified List which synchronizes all access to
the List.
|
static <E> List<E> |
Collections.unmodifiableList(List<? extends E> list)
Returns a wrapper on the specified list which throws an
UnsupportedOperationException whenever an attempt is made to
modify the list. |
| Modifier and Type | Method and Description |
|---|---|
static <T> int |
Collections.binarySearch(List<? extends Comparable<? super T>> list,
T object)
Performs a binary search for the specified element in the specified
sorted list.
|
static <T> int |
Collections.binarySearch(List<? extends T> list,
T object,
Comparator<? super T> comparator)
Performs a binary search for the specified element in the specified
sorted list using the specified comparator.
|
static <T> void |
Collections.copy(List<? super T> destination,
List<? extends T> source)
Copies the elements from the source list to the destination list.
|
static <T> void |
Collections.copy(List<? super T> destination,
List<? extends T> source)
Copies the elements from the source list to the destination list.
|
static <T> void |
Collections.fill(List<? super T> list,
T object)
Fills the specified list with the specified element.
|
static int |
Collections.indexOfSubList(List<?> list,
List<?> sublist)
Searches the
list for sublist and returns the beginning
index of the first occurrence. |
static int |
Collections.indexOfSubList(List<?> list,
List<?> sublist)
Searches the
list for sublist and returns the beginning
index of the first occurrence. |
static int |
Collections.lastIndexOfSubList(List<?> list,
List<?> sublist)
Searches the
list for sublist and returns the beginning
index of the last occurrence. |
static int |
Collections.lastIndexOfSubList(List<?> list,
List<?> sublist)
Searches the
list for sublist and returns the beginning
index of the last occurrence. |
static <T> boolean |
Collections.replaceAll(List<T> list,
T obj,
T obj2)
Replaces all occurrences of Object
obj in list with
newObj. |
static void |
Collections.reverse(List<?> list)
Modifies the specified
List by reversing the order of the
elements. |
static void |
Collections.rotate(List<?> lst,
int dist)
Rotates the elements in
list by the distance dist |
static void |
Collections.shuffle(List<?> list)
Moves every element of the list to a random new position in the list.
|
static void |
Collections.shuffle(List<?> list,
Random random)
Moves every element of the list to a random new position in the list
using the specified random number generator.
|
static <T extends Comparable<? super T>> |
Collections.sort(List<T> list)
Sorts the specified list in ascending natural order.
|
static <T> void |
Collections.sort(List<T> list,
Comparator<? super T> comparator)
Sorts the specified list using the specified comparator.
|
static void |
Collections.swap(List<?> list,
int index1,
int index2)
Swaps the elements of list
list at indices index1 and
index2. |
static <T> List<T> |
Collections.synchronizedList(List<T> list)
Returns a wrapper on the specified List which synchronizes all access to
the List.
|
static <E> List<E> |
Collections.unmodifiableList(List<? extends E> list)
Returns a wrapper on the specified list which throws an
UnsupportedOperationException whenever an attempt is made to
modify the list. |
Copyright © 2023. All rights reserved.