nl.tudelft.tbm.eeni.owlstructure.utils
Class CollectionUtils

java.lang.Object
  extended by nl.tudelft.tbm.eeni.owlstructure.utils.CollectionUtils

public class CollectionUtils
extends Object


Constructor Summary
CollectionUtils()
           
 
Method Summary
static
<T> Collection<T>
intersectCollections(Collection<? extends T> collection1, Collection<? extends T> collection2)
          Returns all items that are both in collection1 and in collection2
static
<T> Collection<T>
subtractCollections(Collection<? extends T> collection1, Collection<? extends T> collection2)
          Returns all items in collection1 that are not in collection2
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionUtils

public CollectionUtils()
Method Detail

intersectCollections

public static <T> Collection<T> intersectCollections(Collection<? extends T> collection1,
                                                     Collection<? extends T> collection2)
Returns all items that are both in collection1 and in collection2


subtractCollections

public static <T> Collection<T> subtractCollections(Collection<? extends T> collection1,
                                                    Collection<? extends T> collection2)
Returns all items in collection1 that are not in collection2



Copyright © 2011. All Rights Reserved.