fr.paris.lutece.plugins.dila.utils
Class ListUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.utils.ListUtils

public final class ListUtils
extends Object

Utilitaire servant à la manipulation des listes


Method Summary
static List<String> getPropertyList(String propertyKey)
          Return.
static fr.paris.lutece.util.ReferenceList toReferenceList(List<?> list, String key, String value, String firstItem)
          Convert a List to a ReferenceList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyList

public static List<String> getPropertyList(String propertyKey)
Return.

Parameters:
propertyKey - the property key
Returns:
the property list

toReferenceList

public static fr.paris.lutece.util.ReferenceList toReferenceList(List<?> list,
                                                                 String key,
                                                                 String value,
                                                                 String firstItem)
Convert a List to a ReferenceList

Parameters:
list - list to convert
key - the property to use as a key for ReferenceList
value - the property to use as a value for ReferenceList
firstItem - the first item in the ReferenceList
Returns:
the ReferenceList with data from given list


Copyright © 2014 Mairie de Paris. All Rights Reserved.