I need to read a flag to validate if I'll send or not an email, this flag is on a LinkedHashMap
, so I'm trying to go over it looking for an ID, then I'll have to ask if is true or false, and I'm trying this:
while(iterator.hasNext()){
LinkedHashMap<String, Object> fileMap = (LinkedHashMap<String, Object>) iterator.next();
userid = (Long)fileMap.get("USERID");
file.findAllFiles(userid);
if(file.findAllFiles(userid).contains(haveFiles = true)){
//send email
}else{
//do something
}
}
Is it correct?