List of usage examples for java.lang Integer toString
public String toString()
From source file:com.dv.sharer.restclients.ImageRestClient.java
public byte[] downloadFile(Integer id) throws Exception { return downloadFile(id.toString()); }
From source file:boutique.service.GenerationCodePromoService.java
public void GenerationCodePromo(CodePromo codePromo) { Random rand = new Random(); Integer nombreAleatoire = rand.nextInt(999999 - 100000 + 1) + 100000; codePromo.setCode(nombreAleatoire.toString()); codePromoService.save(codePromo);//from w w w .ja v a 2 s . c om }
From source file:onlineBoutique.service.GenerationCodePromoService.java
public void generationDunCodePromo(CodePromo codePromo) { Random rand = new Random(); Integer max = 9999;/*w ww.j a v a 2 s. c o m*/ Integer min = 1000; Integer numAleatoire = rand.nextInt(max - min + 1) + min; codePromo.setCodePromo(numAleatoire.toString()); codePromoService.save(codePromo); }
From source file:com.cxy.service.Impl.IdentityImpl.java
@Override public Pager findIdentityList(Integer pageIndex, Integer pageSize) { Pager pager = new Pager(); Map<String, Integer> map = new HashMap<>(); map.put("start", pageIndex * pageSize); map.put("pageSize", pageSize); List<Iidentity> list = mapper.getIdentityListByPage(map); Integer total = mapper.getIdentityCount(null); pager.setTotal(total.toString()); pager.setList(list);//from w w w . j av a 2s . co m return pager; }
From source file:uk.ac.ebi.intact.editor.config.property.IntegerPropertyConverter.java
@Override public String convertToString(Integer obj) { if (obj == null) return null; return obj.toString(); }
From source file:com.dv.sharer.mobile.rest.impl.ImageAndroidRestClient.java
public byte[] downloadFile(Integer intgr) throws Exception { return downloadFile(intgr.toString()); }
From source file:com.codenjoy.dojo.kata.model.levels.algorithms.Sequence2Algorithm.java
@Override public String get(int n) { Integer res = 971; for (int i = 1; i < n; i++) { String s = res.toString(); String s2 = StringUtils.leftPad(s, 3, '0'); res = res - Integer.valueOf(s2.substring(0, 2)); }/*w w w.j a v a 2 s. c o m*/ return res.toString(); }
From source file:com.sborny.wordcountexample.AverageBolt.java
@Override public void execute(Tuple tuple, BasicOutputCollector boc) { String collectionId = tuple.getStringByField("collectionId"); String location = tuple.getStringByField("location"); String concentration = tuple.getStringByField("concentration"); addToQueue(location, Integer.parseInt(concentration)); Integer avg = calcAverage(location); boc.emit(new Values(collectionId, location, avg.toString())); }
From source file:com.github.ibm.domino.client.DominoRestClient.java
public DominoRestClient count(Integer value) { parameters.put("count", value.toString()); return this; }
From source file:com.github.ibm.domino.client.DominoRestClient.java
public DominoRestClient start(Integer value) { parameters.put("start", value.toString()); return this; }