|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.util.XCollections
public class XCollections
Utilities to work with collections, enumerations and iterators.
| Constructor Summary | |
|---|---|
XCollections()
|
|
| Method Summary | |
|---|---|
static void |
add(java.util.Collection collection,
java.util.Enumeration toAdd)
Adds elements from the enumeration to the collection. |
static java.lang.Object |
last(java.util.Collection collection)
Returns the last element of sent collection. |
static void |
println(java.util.Collection c)
Print in standard output the collection elements. |
static void |
println(java.util.Iterator it)
Print in standard output the elements by it iterate. |
static java.util.Collection |
toCollection(java.util.Enumeration e)
Returns a collection from a enumeration. |
static java.lang.String[] |
toStringArray(java.util.Collection c)
Returns a String [] from a collection of Strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XCollections()
| Method Detail |
|---|
public static java.lang.Object last(java.util.Collection collection)
collection - Cannot be null
public static void add(java.util.Collection collection,
java.util.Enumeration toAdd)
collection - Not nulltoAdd - If null no elements are added.public static void println(java.util.Collection c)
Util to debug.
c - Can be null.public static void println(java.util.Iterator it)
Util to debug.
c - Can be null.public static java.util.Collection toCollection(java.util.Enumeration e)
e - If null then returns a empty collection
public static java.lang.String[] toStringArray(java.util.Collection c)
c - Elements must be of type String. If null then returns a empty array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||