1819202122232425262728
if(id == null){ return system.incoming; } if(!system.incoming.containsKey(id)) throw new BillDoesNotExistsInPersistenceException(id); if (!system.incoming.get(id).isActive()) { throw new BillIsNotActiveException(id); }
if(id == null){ return system.expenditure; } if(!system.expenditure.containsKey(id)) throw new BillDoesNotExistsInPersistenceException(id); if (!system.expenditure.get(id).isActive()) { throw new BillIsNotActiveException(id); }
45464748495051
} } if (!returnList.isEmpty()) return returnList; throw new BillDoesNotExistsInPersistenceException(); }