public final class ListUtil
extends java.lang.Object
List.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getLast(java.util.List<T> list)
Retrieve the last element from a list.
|
static ListElement |
getLastListElement(java.util.List list) |
static <T> T |
removeLast(java.util.List<T> list)
Retrieve and remove the last element from a list.
|
public static <T> T getLast(java.util.List<T> list)
T - the type of objects stored in the listlist - the list to work onpublic static ListElement getLastListElement(java.util.List list)
public static <T> T removeLast(java.util.List<T> list)
T - the type of objects stored in the listlist - the list to work onCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.