|
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.GSetUtil
public final class GSetUtil
Utilities for working with sets using JDK 1.5 generics.
Method Summary | ||
---|---|---|
static
|
addArray(Set<T> set,
T[] array)
|
|
static
|
copySet(Set<? extends T> s1)
Create a new Set containing all members of another. |
|
static
|
getSingleton(Set<T> s)
|
|
static
|
intersectSets(Set<T> set1,
Set<T> set2)
Return a new Set of all items in both set1 and set2. |
|
static
|
newNotCommonSet(Set<T> set1,
Set<T> set2)
Return a new Set of all items not common to both sets. |
|
static
|
newSet(Collection<T> c)
|
|
static
|
newSet(Set<T> s1,
Set<TT> s2)
|
|
static
|
newSet(T item)
Create a new Set with one member. |
|
static
|
newSet(T[] objects)
Create a new Set containing all array elements. |
|
static
|
newSet(T[] objects,
int startIndex,
int numItems)
Create a new Set containing all array elements. |
|
static
|
newSet(T m1,
T m2)
|
|
static
|
newSet(T m1,
T m2,
T m3,
T m4)
|
|
static
|
newSingletonSet(T m1)
Create a new Set with one member. |
|
static Set<String> |
newStringSet(Object... args)
|
|
static Set<String> |
newStringSet(String... args)
|
|
static
|
newUnmodifiableSet(T... args)
|
|
static Set<String> |
newUnmodifiableStringSet(String... args)
|
|
static
|
removeSet(Set<T> set1,
Set<T> set2)
Return a new Set of all items in set1 not in set2. |
|
static String[] |
toSortedStringArray(Set<?> s)
|
|
static String[] |
toStringArray(Set<?> s)
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 <T> Set<T> newSet(Collection<T> c)
public static <T> Set<T> newSet(T item)
public static <T> HashSet<T> copySet(Set<? extends T> s1)
public static <T> Set<? extends T> newSet(T m1, T m2)
public static <T> Set<T> newSet(T m1, T m2, T m3, T m4)
public static <T> Set<T> newSet(T[] objects)
public static <T,TT extends T> Set<T> newSet(Set<T> s1, Set<TT> s2)
public static <T> Set<T> newSet(T[] objects, int startIndex, int numItems)
public static String[] toStringArray(Set<?> s)
public static String[] toSortedStringArray(Set<?> s)
public static Set<String> newStringSet(String... args)
public static <T> Set<T> newUnmodifiableSet(T... args)
public static Set<String> newUnmodifiableStringSet(String... args)
public static Set<String> newStringSet(Object... args)
public static <T> Set<T> newSingletonSet(T m1)
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.