Package com.liferay.portal.kernel.util
Class SetUtil
Object
com.liferay.portal.kernel.util.SetUtil
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Set<T>asymmetricDifference(Collection<T> collection1, Collection<T> collection2) fromArray(boolean[] array) fromArray(byte[] array) fromArray(char[] array) fromArray(double[] array) fromArray(float[] array) fromArray(int[] array) fromArray(long[] array) fromArray(short[] array) static <E> Set<E>fromArray(E... array) static <E> Set<E>fromCollection(Collection<? extends E> c) static <E> Set<E>fromEnumeration(Enumeration<? extends E> enumeration) static <E> Set<E>fromIterator(Iterator<E> iterator) static <E> Set<E>fromString(String s) intersect(long[] array1, long[] array2) static <T> Set<T>intersect(Collection<T> collection1, Collection<T> collection2) static booleanstatic booleanisNotEmpty(Set<?> set) static <T> TrandomElement(Set<T> set) symmetricDifference(long[] array1, long[] array2) static <T> Set<T>symmetricDifference(Collection<T> collection1, Collection<T> collection2)
-
Constructor Details
-
SetUtil
public SetUtil()
-
-
Method Details
-
asymmetricDifference
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromArray
-
fromCollection
-
fromEnumeration
-
fromFile
- Throws:
IOException
-
fromFile
- Throws:
IOException
-
fromIterator
-
fromList
-
fromString
-
intersect
-
intersect
-
isEmpty
-
isNotEmpty
-
randomElement
-
symmetricDifference
-
symmetricDifference
-