Пример #1
0
  @Override
  public Employee parse(String s, Locale locale) throws ParseException {
    Collection<Employee> findEmployee = employeeService.listEmployee();
    for (Employee e : findEmployee) {
      if (e.getName().equalsIgnoreCase(s)) {
        return e;
      }
    }

    return null;
  }
Пример #2
0
 @Override
 public String print(Employee employee, Locale locale) {
   return employee.getName();
 }