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 <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 <T> T removeLast(java.util.List<T> list)
T
- the type of objects stored in the listlist
- the list to work onCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.