Refactor: split into modules autojs, common, app and automator

This commit is contained in:
hyb1996
2017-04-03 00:43:15 +08:00
parent e7500e6e21
commit bfabef6a0e
182 changed files with 2521 additions and 5840 deletions

View File

@@ -0,0 +1,37 @@
package com.stardust.util;
import java.util.Map;
import java.util.TreeMap;
/**
* Created by Stardust on 2017/1/26.
*/
public class MapEntries<K, V> {
private Map<K, V> mMap;
public MapEntries() {
this(new TreeMap<K, V>());
}
public MapEntries(Map<K, V> map) {
mMap = map;
}
public MapEntries<K, V> entry(K key, V value) {
mMap.put(key, value);
return this;
}
public Map<K, V> map() {
return mMap;
}
public Map<K, V> putIn(Map<K, V> map) {
map.putAll(mMap);
return map;
}
}