File size: 567 Bytes
e789b06 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
TDAT: public String getRealName(String name, boolean ignoreCase) throws UsersRepositoryException { if (ignoreCase) { Iterator<String> it = list(); while (it.hasNext()) { String temp = it.next(); if (name.equalsIgnoreCase(temp)) { return temp; } } return null; } else { return objectRepository.containsKey(name) ? name : null; } } COM: <s> return the real name given the ignore case boolean parameter </s> |