Files

26 lines
573 B
Java
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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) ;
}