|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.composite.util.ContainerUtils
net.sf.morph.util.ContainerUtils
public class ContainerUtils
Utility functions for working with container-like objects such as Collections and arrays.
| Constructor Summary | |
|---|---|
ContainerUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
contains(java.util.Collection collection,
java.lang.Object value)
Determines if the given collection contains the given
value. |
static boolean |
contains(java.lang.Object[] array,
java.lang.Object value)
Determines if the given array contains the given
value. |
static java.util.Set |
createOrderedSet()
Create an ordered Set implementation based the classes available in the current environment. |
static java.lang.Object[] |
intersection(java.util.List arrays)
Returns the intersection of multiple arrays as an array. |
static java.lang.Object[] |
intersection(java.util.List arrays,
java.lang.Class componentType)
Returns the intersection of multiple arrays as an array. |
| Methods inherited from class net.sf.composite.util.ContainerUtils |
|---|
getElementsOfType, getElementsOfType, getIterator, hasElementOfType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerUtils()
| Method Detail |
|---|
public static boolean contains(java.lang.Object[] array,
java.lang.Object value)
array contains the given
value.
array - the array to testvalue - the value to test
true if the given array contains the given value
or false, otherwise
public static boolean contains(java.util.Collection collection,
java.lang.Object value)
collection contains the given
value.
collection - the collection to testvalue - the value to test
true if the given collection contains the given value
or false, otherwise
public static java.lang.Object[] intersection(java.util.List arrays,
java.lang.Class componentType)
arrays - a List of arrayscomponentType - the runtime type of the returned array
public static java.lang.Object[] intersection(java.util.List arrays)
arrays - a List of arrays
public static java.util.Set createOrderedSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||