com.xebialabs.deployit.util
Class SetUtils

java.lang.Object
  extended by com.xebialabs.deployit.util.SetUtils

public class SetUtils
extends java.lang.Object

Provides a number of utility methods for Sets.


Constructor Summary
SetUtils()
           
 
Method Summary
static
<T> java.util.Set<T>
asSet(T... objs)
          Returns a variable number of arguments (or an array) as a set.
static
<T> java.util.Set<T>
subtract(java.util.Set<? extends T> minuend, java.util.Set<? extends T> subtrahend)
          Subtracts one set from another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetUtils

public SetUtils()
Method Detail

subtract

public static <T> java.util.Set<T> subtract(java.util.Set<? extends T> minuend,
                                            java.util.Set<? extends T> subtrahend)
Subtracts one set from another.

Type Parameters:
T - the type of the objects in the sets.
Parameters:
minuend - the set to subtract from
subtrahend - the set to subtract
Returns:
the difference

asSet

public static <T> java.util.Set<T> asSet(T... objs)
Returns a variable number of arguments (or an array) as a set.

Type Parameters:
T - the type of the objects in the set.
Parameters:
objs - the object to place in the set.
Returns:
the constructed set.


Copyright © 2010. All Rights Reserved.