riordinato alcuni package e creato una prima implementazione di set e mergetemplate

This commit is contained in:
2014-05-17 21:19:18 +02:00
parent 867a7c1a53
commit 4dab60c3fa
10 changed files with 254 additions and 9 deletions

25
set/Set.java Normal file
View File

@@ -0,0 +1,25 @@
package set;
/**
* Created with xgiovio.macbookair.
* User: xgiovio
* Date: 14/05/14
* Time: 14:18
*/
public interface Set<E> {
// Restituisce il numero degli elementi nellinsieme
public int size();
// Restituisce true se linsieme è vuoto
public boolean isEmpty();
// Rimpiazza this con lunione di this e B
public Set<E> union(Set<E> B) ;
// Rimpiazza this con lintersezione di this e B
public Set<E> intersect(Set<E> B) ;
// Rimpiazza this con la differenza di this e B
public Set <E>subtract(Set <E> B) ;
}