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> TRetrieve the last element from a list.static ListElementgetLastListElement(List list) static <T> TremoveLast(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
-