com.aliasi.util
Class CollectionUtils

java.lang.Object
  extended by com.aliasi.util.CollectionUtils

public class CollectionUtils
extends Object

The CollectionUtils class provides static utility methods for dealing with Java collections.

Since:
LingPipe4.0.1
Version:
4.0.1
Author:
Bob Carpenter

Method Summary
static
<E> HashSet<E>
asSet(E... es)
          Return the hash set consisting of adding the specified argument to a newly constructed set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asSet

public static <E> HashSet<E> asSet(E... es)
Return the hash set consisting of adding the specified argument to a newly constructed set.

Parameters:
es - Array of objects to add.
Returns:
Hash set containing the argument elements.