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 <E> Set<E> fromArray(E[] array)
fromArray
public static Set<Long> fromArray(long[] 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)