Modifier and Type | Method and Description |
---|---|
static <T> T |
getLast(List<T> list)
Retrieve the last element from a list.
|
static ListElement |
getLastListElement(List list) |
static <T> T |
removeLast(List<T> list)
Retrieve and remove the last element from a list.
|
public static <T> T getLast(List<T> list)
T
- the type of objects stored in the listlist
- the list to work onpublic static ListElement getLastListElement(List list)
public static <T> T removeLast(List<T> list)
T
- the type of objects stored in the listlist
- the list to work onCopyright © 2025 Apache Software Foundation. All rights reserved.