6162636465666768
return new HashSet<NewsItem>(news.values()); } @Override public NewsItem getNewsItem(int nid) throws ItemNotFoundException { if (!news.containsKey(nid)) throw new ItemNotFoundException(nid); return news.get(nid); }
4445464748495051
return new HashSet<Company>(companies.values()); } @Override public Company getCompany(int cid) throws ItemNotFoundException { if (!companies.containsKey(cid)) throw new ItemNotFoundException(cid); return companies.get(cid); }
6566676869707172
} @Override public User getUser(int uid) throws ItemNotFoundException { if (!users.containsKey(uid)) throw new ItemNotFoundException(uid); return users.get(uid); }