Liferay 6.0.5

com.liferay.portal.kernel.util
Class SetUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.SetUtil
Direct Known Subclasses:
SetUtil

public class SetUtil
extends Object


Constructor Summary
SetUtil()
           
 
Method Summary
static
<E> Set<E>
fromArray(E[] array)
           
static Set<Long> fromArray(long[] array)
           
static
<E> Set<E>
fromCollection(Collection<E> c)
           
static
<E> Set<E>
fromEnumeration(Enumeration<E> enu)
           
static Set<String> fromFile(File file)
           
static Set<String> fromFile(String fileName)
           
static
<E> Set<E>
fromIterator(Iterator<E> itr)
           
static
<E> Set<E>
fromList(List<E> array)
           
static Set<String> fromString(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetUtil

public SetUtil()
Method Detail

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)

Liferay 6.0.5