org.graffiti.plugins.modes.advanced
Class SetOperations

java.lang.Object
  extended by org.graffiti.plugins.modes.advanced.SetOperations

public class SetOperations
extends Object

Helper-classes implementing some Set-based operations. The methods return HashSets or ArrayLists.


Constructor Summary
SetOperations()
           
 
Method Summary
static
<T> Set<T>
minus(Collection<T> coll1, Collection<T> coll2)
          Returns a new Set containing all elements present in coll1, but not in coll2 and nothing else.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetOperations

public SetOperations()
Method Detail

minus

public static <T> Set<T> minus(Collection<T> coll1,
                               Collection<T> coll2)
Returns a new Set containing all elements present in coll1, but not in coll2 and nothing else.

Parameters:
coll1 - any Collection
coll2 - any Collection
Returns:
a new Set containing all elements present in coll1, but not in coll2, and nothing else


Generated at 2012-05-30 11:01:25 PM CEST