public void addBreak(int main, int subFrom, int subTo) {Integer key = Integer.valueOf(main);Break region = _breakMap.get(key);if(region == null) {region = new Break(main, subFrom, subTo);_breakMap.put(key, region);_breaks.add(region);} else {region.main = main;region.subFrom = subFrom;region.subTo = subTo;}}
public void AddBreak(int main, int subFrom, int subTo){int key = (int)main;Break region = (Break)_breakMap[key];if (region != null){region.main = main;region.subFrom = subFrom;region.subTo = subTo;}else{region = new Break(main, subFrom, subTo);_breaks.Add(region);}_breakMap[key] = region;}