Personal speech,
I am in doubt about the following method:
/**
* Metodo x
*/
public Exit Method(String n) {
final Ent y = new Ent();
y.setn(n);
Exit res = OpUtil.Envia(new Job() {
@Override
public Exit run(OpInt oi) throws RemoteException {
Exit res = oi.execute(y);
if (OpUtil.Ok(res)) {
//...
}
return res;
}
@Override
public ExitList runAsList(OpInt oi)
throws RemoteException {
// TODO Auto-generated method stub
return null;
}
});
return res;
}
The OpUtil.Envia method receives only one object of type Job as argument, what behavior of the application in this case - when I open a "{}" and call other methods?
Could you help me with pfv examples.
Thank you in advance.