Example #1
0
 private void initUnitMaps(DataSource source) {
   long now = System.currentTimeMillis();
   for (ResUnit unit : ResUnit.values()) {
     _sources.put(unit, source);
     _changeStamp.put(unit, now);
   }
 }
Example #2
0
 public ResUnit getResUnit(String name) {
   return ResUnit.valueOf(name);
 }