|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.util.CollectionUtils
public class CollectionUtils
Class containing collection related utilities
| Constructor Summary | |
|---|---|
CollectionUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
asSet(T... elements)
Converts the given array of elements to a set. |
|
static Collection<?> |
convertToCollection(Object object)
Converts the given array or collection object (possibly primitive array) to type Collection |
|
static Object[] |
convertToObjectArray(Object object)
Converts the given array object (possibly primitive array) to type Object[] |
|
static
|
subList(List<T> list,
int fromIndex,
int toIndex)
Gets a list containing all elements from the given index to the given index. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionUtils()
| Method Detail |
|---|
public static <T> List<T> subList(List<T> list,
int fromIndex,
int toIndex)
list - The original listfromIndex - The from indextoIndex - The to index
public static <T> Set<T> asSet(T... elements)
elements - The elements
public static Collection<?> convertToCollection(Object object)
object - The array or collection
public static Object[] convertToObjectArray(Object object)
object - The array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||