daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top