Update of /cvsroot/displaytag/display09/src/org/displaytag/util
In directory sc8-pr-cvs1:/tmp/cvs-serv3000/src/org/displaytag/util

Modified Files:
        CollectionUtil.java 
Log Message:
removed unused method, removed useless thrown declaration, improved javadocs

Index: CollectionUtil.java
===================================================================
RCS file: /cvsroot/displaytag/display09/src/org/displaytag/util/CollectionUtil.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CollectionUtil.java 21 Jun 2003 12:34:50 -0000      1.1
--- CollectionUtil.java 17 Jul 2003 21:45:39 -0000      1.2
***************
*** 5,10 ****
  import java.util.List;
  
- import javax.servlet.jsp.JspException;
- 
  import org.apache.commons.collections.IteratorUtils;
  import org.apache.commons.logging.Log;
--- 5,8 ----
***************
*** 23,27 ****
         */
        private static Log mLog= LogFactory.getLog(CollectionUtil.class);
!       
        /**
         * Don't instantiate a CollectionUtil
--- 21,25 ----
         */
        private static Log mLog= LogFactory.getLog(CollectionUtil.class);
! 
        /**
         * Don't instantiate a CollectionUtil
***************
*** 32,40 ****
  
        /**
!        * Method getSubList
         * @param pIterator Iterator
!        * @param pStartNumber int
!        * @param pNumberOfItems int
!        * @return List
         */
        private static List getSubList(Iterator pIterator, int pStartNumber, int 
pNumberOfItems)
--- 30,40 ----
  
        /**
!        * Create a list of objects taken from the given iterator and crop the 
resulting list according to the pStartNumber 
!        * and pNumberOfItems parameters
         * @param pIterator Iterator
!        * @param pStartNumber int starting index
!        * @param pNumberOfItems int number of items to keep in the list
!        * @return List with values taken from the given object, cropped according the 
pStartNumber and pNumberOfItems 
!        * parameters
         */
        private static List getSubList(Iterator pIterator, int pStartNumber, int 
pNumberOfItems)
***************
*** 63,96 ****
  
                }
-               
-               return lCroppedList;
  
!       }
  
-       /**
-        * crop a list starting from pStartNumber and keeping pNumberOfItems items
-        * @param pFullList initial List
-        * @param pStartNumber int
-        * @param pNumberOfItems int
-        * @return List cropped list
-        */
-       public static List getSubList(List pFullList, int pStartNumber, int 
pNumberOfItems)
-       {
-               Iterator lIterator= pFullList.iterator();
-               return getSubList(lIterator, pStartNumber, pNumberOfItems);
        }
  
        /**
!        * create an iterator on a given object (Collection, Enumeration, array, 
single Object) and
!        * crop the resulting list according to the pStartNumber and pNumberOfItems 
parameters
!        * @param pFullList Object
!        * @param pStartNumber int
!        * @param pNumberOfItems int
!        * @return List
!        * @throws JspException generic exception
         */
!       public static List getListFromObject(Object pFullList, int pStartNumber, int 
pNumberOfItems) throws JspException
        {
- 
                Iterator lIterator= IteratorUtils.getIterator(pFullList);
                return getSubList(lIterator, pStartNumber, pNumberOfItems);
--- 63,82 ----
  
                }
  
!               return lCroppedList;
  
        }
  
        /**
!        * create an iterator on a given object (Collection, Enumeration, array, 
single Object) and crop the resulting 
!        * list according to the pStartNumber and pNumberOfItems parameters
!        * @param pFullList Collection, Enumeration or array to crop
!        * @param pStartNumber int starting index
!        * @param pNumberOfItems int number of items to keep in the list
!        * @return List with values taken from the given object, cropped according the 
pStartNumber and pNumberOfItems 
!        * parameters
         */
!       public static List getListFromObject(Object pFullList, int pStartNumber, int 
pNumberOfItems)
        {
                Iterator lIterator= IteratorUtils.getIterator(pFullList);
                return getSubList(lIterator, pStartNumber, pNumberOfItems);




-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to