tools.jce
Class Sets

java.lang.Object
  extended bytools.jce.Sets

public class Sets
extends Object

Provides some useful utitlity methods for operating on sets and maps such as intersecting sets or resolving sets against maps.

Version:
"$Id: Sets.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Volker Roth

Constructor Summary
private Sets()
           
 
Method Summary
static Set intersect(Collection s, Collection t)
           
static Set minus(Collection s, Collection t)
          Returns the set resulting from s-t.
static Set prefixMatch(String prefix, Collection s)
          Extracts all Strings from set s that start with the given prefix.
static Set resolve(Collection s, Map t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sets

private Sets()
Method Detail

intersect

public static Set intersect(Collection s,
                            Collection t)

resolve

public static Set resolve(Collection s,
                          Map t)

prefixMatch

public static Set prefixMatch(String prefix,
                              Collection s)
Extracts all Strings from set s that start with the given prefix. Returns a new set. The given one remains unmodified.


minus

public static Set minus(Collection s,
                        Collection t)
Returns the set resulting from s-t.



Copyright © Fraunhofer Gesellschaft. All Rights Reserved.