用途
Collectors.toSet:
Set<String> results = someDao.findByType(type) .stream() .map(ClassName::getValue) .collect(Collectors.toSet());

用途
Collectors.toSet:
Set<String> results = someDao.findByType(type) .stream() .map(ClassName::getValue) .collect(Collectors.toSet());