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