|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.util.ArrayLists
Utility class containing static methods associated with ArrayLists
Constructor Summary | |
ArrayLists()
|
Method Summary | |
static java.util.ArrayList |
comm(java.util.ArrayList flist1,
java.util.ArrayList flist2,
java.util.Comparator fcomp)
Compares two sorted lists and split them into three sublists containing 1) the entries only in the first list 2) the entries only in the second list 3) the entries common to both lists |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArrayLists()
Method Detail |
public static java.util.ArrayList comm(java.util.ArrayList flist1, java.util.ArrayList flist2, java.util.Comparator fcomp)
flist1
- first list (must be already sorted)flist2
- second list (must be already sorted)fcomp
- Comparator object. This object must be compatible with those
used to sort the two lists, i.e. it must sort in the same order.
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |