org.crosswire.common.util
Class CollectionUtil

java.lang.Object
  extended by org.crosswire.common.util.CollectionUtil

public final class CollectionUtil
extends Object

Some utils to help work with Collections.

Author:
Joe Walker [joe at eireneh dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.

Constructor Summary
private CollectionUtil()
          Dont do this
 
Method Summary
static List createList(Iterable it)
          Create a List from an Iterable.
static Set createSet(Iterable it)
          Create a Set from an Iterable.
static Map properties2Map(Properties prop)
          Convert a Properties into a Map.
static Map properties2Map(URI propUri)
          Convert a Properties located at propURI into a Map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtil

private CollectionUtil()
Dont do this

Method Detail

createList

public static List createList(Iterable it)
Create a List from an Iterable.

Parameters:
it - The source of data for the list
Returns:
List

createSet

public static Set createSet(Iterable it)
Create a Set from an Iterable.

Parameters:
it - The source of data for the list
Returns:
the created set

properties2Map

public static Map properties2Map(Properties prop)
Convert a Properties into a Map.

Parameters:
prop - The Properties to convert
Returns:
The map

properties2Map

public static Map properties2Map(URI propUri)
                          throws IOException
Convert a Properties located at propURI into a Map.

Parameters:
propUri - The URI of the Properties to convert
Returns:
The map
Throws:
IOException

Copyright ยจ 2003-2007