public void intialize(TransportConnectionStateRegister other) { if (other.isEmpty()){ clear(); }else{ Map map = other.mapStates(); Iterator i = map.entrySet().iterator(); Map.Entry<ConnectionId, TransportConnectionState> entry = (Entry<ConnectionId, TransportConnectionState>) i.next(); connectionId = entry.getKey(); connectionState =entry.getValue(); } }
public void intialize(TransportConnectionStateRegister other) { if (other.isEmpty()){ clear(); }else{ Map map = other.mapStates(); Iterator i = map.entrySet().iterator(); Map.Entry<ConnectionId, TransportConnectionState> entry = (Entry<ConnectionId, TransportConnectionState>) i.next(); connectionId = entry.getKey(); connectionState =entry.getValue(); } }
public void intialize(TransportConnectionStateRegister other) { if (other.isEmpty()){ clear(); }else{ Map map = other.mapStates(); Iterator i = map.entrySet().iterator(); Map.Entry<ConnectionId, TransportConnectionState> entry = (Entry<ConnectionId, TransportConnectionState>) i.next(); connectionId = entry.getKey(); connectionState =entry.getValue(); } }
public void intialize(TransportConnectionStateRegister other) { if (other.isEmpty()){ clear(); }else{ Map map = other.mapStates(); Iterator i = map.entrySet().iterator(); Map.Entry<ConnectionId, TransportConnectionState> entry = (Entry<ConnectionId, TransportConnectionState>) i.next(); connectionId = entry.getKey(); connectionState =entry.getValue(); } }
public void intialize(TransportConnectionStateRegister other) { if (other.isEmpty()){ clear(); }else{ Map map = other.mapStates(); Iterator i = map.entrySet().iterator(); Map.Entry<ConnectionId, TransportConnectionState> entry = (Entry<ConnectionId, TransportConnectionState>) i.next(); connectionId = entry.getKey(); connectionState =entry.getValue(); } }