本文整理了Java中de.alpharogroup.address.book.service.api.ZipcodesService.find()
方法的一些代码示例,展示了ZipcodesService.find()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipcodesService.find()
方法的具体详情如下:
包路径:de.alpharogroup.address.book.service.api.ZipcodesService
类名称:ZipcodesService
方法名:find
[英]Finds all Zipcodes from the given Countries object.
[中]查找给定国家/地区对象中的所有Zipcodes。
代码示例来源:origin: de.alpharogroup/address-book-business
/**
* {@inheritDoc}
*/
@Override
@Deprecated
public Map<Countries, List<Zipcodes>> getCountriesToZipcodesMap()
{
if (this.countriesToZipcodesMap == null)
{
this.countriesToZipcodesMap = new LinkedHashMap<Countries, List<Zipcodes>>();
List<Countries> countries = findAll();
Collections.sort(countries, new Comparator<Countries>()
{
@Override
public int compare(Countries o1, Countries o2)
{
return o1.getName().compareTo(o2.getName());
}
});
for (Countries country : countries)
{
List<Zipcodes> zipcodes = zipcodesService.find(country);
this.countriesToZipcodesMap.put(country, zipcodes);
}
}
return this.countriesToZipcodesMap;
}
代码示例来源:origin: de.alpharogroup/address-book-business
for (Countries country : countries)
List<Zipcodes> zipcodes = zipcodesService.find(country);
this.germanCountriesToZipcodesMap.put(country, zipcodes);
代码示例来源:origin: de.alpharogroup/address-book-domain
/**
* {@inheritDoc}
*/
@Override
public List<Zipcode> find(Country country)
{
List<Zipcode> zcs = new ArrayList<>();
if (country != null)
{
Countries countries = getMapper().map(country, Countries.class);
return getMapper().toDomainObjects(zipcodesService.find(countries));
}
return zcs;
}
代码示例来源:origin: de.alpharogroup/address-book-business
/**
* {@inheritDoc}
*/
@Override
public List<KeyValuesPair<Countries, Zipcodes>> getCountriesToZipcodesList()
{
if (this.countriesToZipcodesList == null)
{
this.countriesToZipcodesList = new ArrayList<>();
List<Countries> countries = findAll();
Collections.sort(countries, new Comparator<Countries>()
{
@Override
public int compare(Countries o1, Countries o2)
{
return o1.getName().compareTo(o2.getName());
}
});
for (Countries country : countries)
{
List<Zipcodes> zipcodes = zipcodesService.find(country);
this.countriesToZipcodesList.add(KeyValuesPair.<Countries, Zipcodes> builder()
.key(country).values(zipcodes).build());
}
}
return this.countriesToZipcodesList;
}
代码示例来源:origin: de.alpharogroup/address-book-business
for (Countries country : countries)
List<Zipcodes> zipcodes = zipcodesService.find(country);
this.germanCountriesToZipcodesList.add(KeyValuesPair.<Countries, Zipcodes> builder()
.key(country).values(zipcodes).build());
内容来源于网络,如有侵权,请联系作者删除!