rm FiltroStringa

This commit is contained in:
orange 2016-12-30 22:17:04 +01:00
parent 92aeccdc5f
commit 4e2368772e

View File

@ -1,44 +0,0 @@
public interface FiltroStringa{
String getString(Object obj);
}
class FiltroSupporto implements FiltroStringa{
public String getString(Object obj){
if(obj instanceof OperaMult)
return ((OperaMult) obj).getSupporto();
else
return "";
}
}
class FiltroTecnica implements FiltroStringa{
public String getString(Object obj){
if(obj instanceof Stampa)
return ((Stampa) obj).getTecnica();
else
return "";
}
}
class FiltroAutore implements FiltroStringa{
public String getString(Object obj){
return ((Opera) obj).getAutore();
}
}
class FiltroTitolo implements FiltroStringa{
public String getString(Object obj){
return ((Opera) obj).getTitolo();
}
}
class FiltroPosizione implements FiltroStringa{
public String getString(Object obj){
return ((Opera) obj).getPos();
}
}