com.mizar.commons.collections
Class CollectionsUtils

java.lang.Object
  extended by org.apache.commons.collections.CollectionUtils
      extended by com.mizar.commons.collections.CollectionsUtils

public class CollectionsUtils
extends org.apache.commons.collections.CollectionUtils


Field Summary
 
Fields inherited from class org.apache.commons.collections.CollectionUtils
EMPTY_COLLECTION
 
Constructor Summary
protected CollectionsUtils()
           
 
Method Summary
static java.util.HashMap<java.lang.String,java.lang.String> fromString(java.lang.String string)
           
static java.util.HashMap<java.lang.String,java.lang.String> fromString(java.lang.String string, java.lang.String delim)
           
static java.util.HashSet intersect(java.util.HashSet setA, java.util.HashSet setB)
          Liberally taken from Copyright (C) Qi Zhong (qzhong@ics.uci.edu) Jia Li (jiali@ics.uci.edu) Chen Li (chenli@ics.uci.edu) Information and Computer Science University of California, Irvine, CA 92697 Orginal authors wrote a version that only worked for Strings.
static java.util.List intersect(java.util.List listA, java.util.List listB)
           
static void main(java.lang.String[] args)
           
static java.lang.String toString(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String delim)
          This method converts the map of name value pairs into a tokenized string Its first purpose was to facilitate moving complex classes to Javascript
 
Methods inherited from class org.apache.commons.collections.CollectionUtils
addAll, addAll, addAll, addIgnoreNull, cardinality, collect, collect, collect, collect, containsAny, countMatches, disjunction, exists, filter, find, forAllDo, get, getCardinalityMap, index, index, intersection, isEmpty, isEqualCollection, isFull, isNotEmpty, isProperSubCollection, isSubCollection, maxSize, predicatedCollection, removeAll, retainAll, reverseArray, select, select, selectRejected, selectRejected, size, sizeIsEmpty, subtract, synchronizedCollection, transform, transformedCollection, typedCollection, union, unmodifiableCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionsUtils

protected CollectionsUtils()
Method Detail

main

public static void main(java.lang.String[] args)

intersect

public static java.util.HashSet intersect(java.util.HashSet setA,
                                          java.util.HashSet setB)
Liberally taken from Copyright (C) Qi Zhong (qzhong@ics.uci.edu) Jia Li (jiali@ics.uci.edu) Chen Li (chenli@ics.uci.edu) Information and Computer Science University of California, Irvine, CA 92697 Orginal authors wrote a version that only worked for Strings. This variation works for any Object

Parameters:
setA -
setB -
Returns:

intersect

public static java.util.List intersect(java.util.List listA,
                                       java.util.List listB)

toString

public static java.lang.String toString(java.util.Map<java.lang.String,java.lang.Object> map,
                                        java.lang.String delim)
This method converts the map of name value pairs into a tokenized string Its first purpose was to facilitate moving complex classes to Javascript

Parameters:
map - a collection of name value pairs
delim - a single character that separates tokens
Returns:
a String in the form name=value|name=value|name=value (assuming that separator is the | character.
See Also:
fromString(String,String)

fromString

public static java.util.HashMap<java.lang.String,java.lang.String> fromString(java.lang.String string,
                                                                              java.lang.String delim)
Parameters:
string -
delim -
Returns:
See Also:
#toString(HashMap,String)

fromString

public static java.util.HashMap<java.lang.String,java.lang.String> fromString(java.lang.String string)