|
||||||||||
| 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.
The GNU Lesser General Public License for details.| 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)
T - The type of data for the listit - The source of data for the list
public static <T> Set<T> createSet(Iterable<T> it)
T - The type of data for the listit - 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 - If there is a problem with getting the properties from the URI
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||