Comepletata la ListPartion aggiungendo alcuni metodi a OrderedListset

This commit is contained in:
2014-05-20 18:49:37 +02:00
parent 4420be5086
commit 75199b5c96
4 changed files with 215 additions and 68 deletions

View File

@@ -0,0 +1,48 @@
package com.xgiovio;
import partition.ListPartition;
import position.NodePositionList;
import set.OrderedListSet;
import set.Set;
/**
* Created with MONSTER.
* User: xgiovio
* Date: 18/05/2014
* Time: 15:58
*/
public class ListPartitionTest {
public static void main(String[] args) {
ListPartition<String > a = new ListPartition<String>() ;
Set<String> a1 = a.makeSet("1");
System.out.println(a);
Set<String> a2 = a.makeSet("2");
System.out.println(a);
Set<String> a3 = a.makeSet("3");
System.out.println(a);
Set<String> a4 = a.makeSet("4");
System.out.println(a);
Set<String> out;
out = a.union(a1,a2);
System.out.println(a);
out = a.union(out,a3);
System.out.println(a);
out = a.union(out,a4);
System.out.println(a);
}
}