Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun Place.processSpecialization(map: HashMap<String, String>): String {
- var specialization = ""
- if (aeropress) {
- specialization += (map[Constant.TYPE_AEROPRESS]) + ","
- }
- if (chemex) {
- specialization += " " + (map[Constant.TYPE_CHEMEX]) + ","
- }
- if (coldbrew) {
- specialization += " " + (map[Constant.TYPE_COLD_BREW]) + ","
- }
- if (drip) {
- specialization += " " + (map[Constant.TYPE_DRIP]) + ","
- }
- if (syphon) {
- specialization += " " + (map[Constant.TYPE_SYPHON]) + ","
- }
- specialization = specialization.removeSuffix(",")
- return specialization
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement