fop 1.0

org.apache.fop.util
Class ListUtil

java.lang.Object
  extended byorg.apache.fop.util.ListUtil

public final class ListUtil
extends java.lang.Object

Provides helper functions for List.


Method Summary
static java.lang.Object getLast(java.util.List list)
          Retrieve the last element from a list.
static java.lang.Object removeLast(java.util.List list)
          Retrieve and remove the last element from a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLast

public static java.lang.Object getLast(java.util.List list)
Retrieve the last element from a list.

Parameters:
list - The list to work on
Returns:
last element

removeLast

public static java.lang.Object removeLast(java.util.List list)
Retrieve and remove the last element from a list.

Parameters:
list - The list to work on
Returns:
previous last element

fop 1.0

Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.