Specifica del supertipo
// OVERVIEW: un IntSet è un insieme modificabile di interi di
// EFFECTS: inizializza this a vuoto
public void insert (int x)
// EFFECTS: aggiunge x a this
public void remove (int x)
// EFFECTS: toglie x da this
public boolean isIn (int x)
// EFFECTS: se x appartiene a this ritorna true, altrimenti false
// EFFECTS: ritorna la cardinalità di this
public Iterator elements ()
// EFFECTS: ritorna un generatore che produrrà tutti gli elementi di
// this (come Integers) ciascuno una sola volta, in ordine arbitrario
// REQUIRES: this non deve essere modificato finché il generatore è in
public boolean subset (Intset s)
// EFFECTS: se s è un sottoinsieme di this ritorna true, altrimenti