i need a help with this block of code.I have this method, and initially all conditions returns true(like the if abd the return true of MERCATO LIBERO).During last modify i change the MAGGIOR TUTELA but,i dont change the piece part of MERCATO LIBERO.
private boolean method(BaseElaboration line) {
if (line.getMercato().equals("MERCATO LIBERO")) {
if (line.getStrategia().toLowerCase().startsWith("STRATEGIA FO".toLowerCase())
|| line.getStrategia().toLowerCase().contains("CREDITI CEDUTI".toLowerCase())) {
return true;
}
if (line.getAttivita().equalsIgnoreCase("Proposta di Recupero Stragiudiziale FO")
|| line.getAttivita().equalsIgnoreCase("Proposta di Cessione")) {
return true;
}
if (line.getLegalenome().equalsIgnoreCase("Euroservice junk STR FO")
|| line.getLegalenome().equalsIgnoreCase("Euroservice_FO")) {
return true;
}
} else if (line.getMercato().equals("MAGGIOR TUTELA")) {
if(line.getCollector().toLowerCase().contains("Cessione".toLowerCase())
|| (line.getCollector().equalsIgnoreCase("Euroservice_Fo"))
|| (line.getAttivitaCrabb().toLowerCase().contains("*FO".toLowerCase())
|| (line.getaNomeCluster().equalsIgnoreCase("Full Outsourcing")))) {
onlyCUV = true;
}
else if(Collections.frequency(storedIds,line.getCuv()) >= 1 ){
onlyCUV = true;
}
return onlyCUV;
}
return false;
}
Initially all the code has this if and the return with true but,i changes the second part ( MAGGIOR TUTELA) into the actual MAGGIOR TUTELA.I should do the same for the MERCATO LIBERO,but i dont know how to do it.Anyone can please help me a bit .SHould do the same "onlyCuv true", the else if Collections ecc >= 1.
Aucun commentaire:
Enregistrer un commentaire