|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.util.CollectionUtil
public final class CollectionUtil
Some utils to help work with Collections.
for license details.
The copyright to this program is held by it's authors.
Constructor Summary | |
---|---|
private |
CollectionUtil()
Dont do this |
Method Summary | ||
---|---|---|
static
|
createList(Iterable<T> it)
Create a List from an Iterable. |
|
static
|
createSet(Iterable<T> it)
Create a Set from an Iterable. |
|
static PropertyMap |
properties2Map(Properties prop)
Convert a Properties into a Map . |
|
static PropertyMap |
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 |
---|
private CollectionUtil()
Method Detail |
---|
public static <T> List<T> createList(Iterable<T> it)
it
- The source of data for the list
public static <T> Set<T> createSet(Iterable<T> it)
it
- The source of data for the list
public static PropertyMap properties2Map(Properties prop)
Properties
into a Map
.
prop
- The Properties to convert
public static PropertyMap properties2Map(URI propUri) throws IOException
Properties
located at propURI
into a
Map
.
propUri
- The URI of the Properties to convert
IOException
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |