com.liferay.portal.kernel.util
Class SetUtil
java.lang.Object
com.liferay.portal.kernel.util.SetUtil
- Direct Known Subclasses:
- SetUtil
public class SetUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetUtil
public SetUtil()
fromArray
public static Set<Boolean> fromArray(boolean[] array)
fromArray
public static Set<Byte> fromArray(byte[] array)
fromArray
public static Set<Character> fromArray(char[] array)
fromArray
public static Set<Double> fromArray(double[] array)
fromArray
public static <E> Set<E> fromArray(E[] array)
fromArray
public static Set<Float> fromArray(float[] array)
fromArray
public static Set<Integer> fromArray(int[] array)
fromArray
public static Set<Long> fromArray(long[] array)
fromArray
public static Set<Short> fromArray(short[] array)
fromCollection
public static <E> Set<E> fromCollection(Collection<E> c)
fromEnumeration
public static <E> Set<E> fromEnumeration(Enumeration<E> enu)
fromFile
public static Set<String> fromFile(File file)
throws IOException
- Throws:
IOException
fromFile
public static Set<String> fromFile(String fileName)
throws IOException
- Throws:
IOException
fromIterator
public static <E> Set<E> fromIterator(Iterator<E> itr)
fromList
public static <E> Set<E> fromList(List<E> array)
fromString
public static Set<String> fromString(String s)
intersect
public static <T> Set<T> intersect(Collection<T> collection1,
Collection<T> collection2)
intersect
public static Set<Long> intersect(long[] array1,
long[] array2)
symmetricDifference
public static <T> Set<T> symmetricDifference(Collection<T> collection1,
Collection<T> collection2)
symmetricDifference
public static Set<Long> symmetricDifference(long[] array1,
long[] array2)