Package org.apache.fop.util
Class ListUtil
java.lang.Object
org.apache.fop.util.ListUtil
Provides helper functions for
List
.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
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.
-
Method Details
-
getLast
Retrieve the last element from a list.- Type Parameters:
T
- the type of objects stored in the list- Parameters:
list
- the list to work on- Returns:
- last element
-
getLastListElement
-
removeLast
Retrieve and remove the last element from a list.- Type Parameters:
T
- the type of objects stored in the list- Parameters:
list
- the list to work on- Returns:
- previous last element
-