|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.algernon.util.CollectionUtil
Constructor Summary | |
CollectionUtil()
|
Method Summary | |
static String |
collectionToNumberedList(Collection values)
Returns a numbered, indented list with the values and an index number. |
static Object |
first(Collection c)
Returns the first element in a collection. |
static Collection |
objectsToCollection(Object o)
Turns an object into a Collection containing just the object. |
static Collection |
objectsToCollection(Object o1,
Object o2)
Turns two objects into a Collection containing just the objects. |
static Collection |
objectsToCollection(Object o1,
Object o2,
Object o3)
Turns three objects into a Collection containing just the objects. |
static Collection |
objectsToCollection(Object o1,
Object o2,
Object o3,
Object o4)
Turns four objects into a Collection containing just the objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionUtil()
Method Detail |
public static Collection objectsToCollection(Object o)
public static Collection objectsToCollection(Object o1, Object o2)
public static Collection objectsToCollection(Object o1, Object o2, Object o3)
public static Collection objectsToCollection(Object o1, Object o2, Object o3, Object o4)
public static Object first(Collection c)
public static String collectionToNumberedList(Collection values)
values
-
|
Algernon Software | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |