package set; /** * Created with xgiovio.macbookair. * User: xgiovio * Date: 14/05/14 * Time: 14:18 */ public interface Set { // Restituisce il numero degli elementi nell’insieme public int size(); // Restituisce true se l’insieme è vuoto public boolean isEmpty(); // Rimpiazza this con l’unione di this e B public Set union(Set B) ; // Rimpiazza this con l’intersezione di this e B public Set intersect(Set B) ; // Rimpiazza this con la differenza di this e B public Set subtract(Set B) ; }