RxJava1 에서 map 반복문
Map bodyData = new LinkedHashMap(); bodyData.put("key1", "val1"); bodyData.put("key2", "val2"); bodyData.put("key3", "val3"); Observable entries = Observable.from(bodyData.entrySet()); //사이즈만큼 반복 entries.subscribe( value -> { String k = value.getKey(); //키값 String v = value.getValue(); //밸류 });
2019.08.28