package sunw.demo.hotspots; import java.util.*; public class HotSpotMgr { private Vector _vec; public HotSpotMgr() { _vec = new Vector(); } public void manage(HotSpot hs) { _vec.addElement(hs); } public HotSpot isAt(Coordinates coord) { for (int i = 0; i < _vec.size(); i++) { HotSpot hs = (HotSpot)_vec.elementAt(i); if (hs.isAt(coord)) return hs; } return null; } }