Advertisement
Guest User

Untitled

a guest
Jan 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.64 KB | None | 0 0
  1. fun Place.processSpecialization(map: HashMap<String, String>): String {
  2.     var specialization = ""
  3.     if (aeropress) {
  4.         specialization += (map[Constant.TYPE_AEROPRESS]) + ","
  5.     }
  6.     if (chemex) {
  7.         specialization += " " + (map[Constant.TYPE_CHEMEX]) + ","
  8.     }
  9.     if (coldbrew) {
  10.         specialization += " " + (map[Constant.TYPE_COLD_BREW]) + ","
  11.     }
  12.     if (drip) {
  13.         specialization += " " + (map[Constant.TYPE_DRIP]) + ","
  14.     }
  15.     if (syphon) {
  16.         specialization += " " + (map[Constant.TYPE_SYPHON]) + ","
  17.     }
  18.     specialization = specialization.removeSuffix(",")
  19.     return specialization
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement