|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.appserv.management.util.misc.SetUtil
public final class SetUtil
Method Summary | ||
---|---|---|
static
|
addArray(Set<T> set,
T[] array)
Deprecated. Add all items in an array to a set. |
|
static
|
copySet(Set<T> s1)
Deprecated. Create a new Set containing all members of another. |
|
static
|
getSingleton(Set<T> s)
Deprecated. |
|
static
|
intersectSets(Set<T> set1,
Set<T> set2)
Deprecated. Return a new Set of all items in both set1 and set2. |
|
static
|
newNotCommonSet(Set<T> set1,
Set<T> set2)
Deprecated. Return a new Set of all items not common to both sets. |
|
static
|
newSet(Collection<T> c)
Deprecated. Create a new Set with one member. |
|
static
|
newSet(Set<? extends T>[] sets)
Deprecated. Create a new Set containing all array elements. |
|
static
|
newSet(Set<? extends T> s1,
Set<? extends T> s2)
Deprecated. Create a new Set consisting of the contents of two sets. |
|
static
|
newSet(Set<? extends T> s1,
Set<? extends T> s2,
Set<? extends T> s3)
Deprecated. Create a new Set consisting of the contents of three sets. |
|
static
|
newSet(Set<? extends T> s1,
Set<? extends T> s2,
Set<? extends T> s3,
Set<? extends T> s4)
Deprecated. Create a new Set consisting of the contents of four sets. |
|
static
|
newSet(T... objects)
Deprecated. Create a new Set containing all array elements. |
|
static
|
newSet(T[] objects,
int startIndex,
int numItems)
Deprecated. Create a new Set containing all array elements. |
|
static
|
newSingletonSet(T m1)
Deprecated. Create a new Set with one member. |
|
static Set<String> |
newUnmodifiableSet(String[] objects)
Deprecated. |
|
static
|
removeSet(Set<T> set1,
Set<T> set2)
Deprecated. Return a new Set of all items in set1 not in set2. |
|
static Object[] |
toArray(Set<?> set)
Deprecated. Convert a Set to a String[] |
|
static String[] |
toStringArray(Set set)
Deprecated. Convert a Set to a String[] |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T getSingleton(Set<T> s)
public static <T> void addArray(Set<T> set, T[] array)
public static String[] toStringArray(Set set)
public static Object[] toArray(Set<?> set)
public static <T> Set<T> newSet(Collection<T> c)
public static <T> Set<T> newSingletonSet(T m1)
public static <T> HashSet<T> copySet(Set<T> s1)
public static <T> Set<T> newSet(Set<? extends T>[] sets)
public static <T> Set<T> newSet(Set<? extends T> s1, Set<? extends T> s2)
public static <T> Set<T> newSet(Set<? extends T> s1, Set<? extends T> s2, Set<? extends T> s3)
public static <T> Set<T> newSet(Set<? extends T> s1, Set<? extends T> s2, Set<? extends T> s3, Set<? extends T> s4)
public static Set<String> newUnmodifiableSet(String[] objects)
public static <T> Set<T> newSet(T... objects)
public static <T> Set<T> newSet(T[] objects, int startIndex, int numItems)
public static <T> Set<T> intersectSets(Set<T> set1, Set<T> set2)
public static <T> Set<T> removeSet(Set<T> set1, Set<T> set2)
public static <T> Set<T> newNotCommonSet(Set<T> set1, Set<T> set2)
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.