void removeConnection (Connection connection) { ArrayList<Connection> temp = new ArrayList(Arrays.asList(connections)); temp.remove(connection); connections = temp.toArray(new Connection[temp.size()]); pendingConnections.remove(connection.id); }
/** Removes an object. The remote end of the ObjectSpace's connections will no longer be able to access it. */ public void remove (int objectID) { Object object = idToObject.remove(objectID); if (object != null) objectToID.remove(object, 0); if (TRACE) trace("kryonet", "Object " + objectID + " removed from ObjectSpace: " + object); }
/** Removes an object. The remote end of the ObjectSpace's connections will no longer be able to access it. */ public void remove (Object object) { if (!idToObject.containsValue(object, true)) return; int objectID = idToObject.findKey(object, true, -1); idToObject.remove(objectID); objectToID.remove(object, 0); if (TRACE) trace("kryonet", "Object " + objectID + " removed from ObjectSpace: " + object); }
Connection connection = pendingConnections.remove(fromConnectionID); if (connection != null) { if (connection.udpRemoteAddress != null) continue outer;
void removeConnection(Connection connection) { ArrayList<Connection> temp = new ArrayList(Arrays.asList(connections)); temp.remove(connection); connections = temp.toArray(new Connection[temp.size()]); pendingConnections.remove(connection.id); }
void removeConnection (Connection connection) { ArrayList<Connection> temp = new ArrayList(Arrays.asList(connections)); temp.remove(connection); connections = temp.toArray(new Connection[temp.size()]); pendingConnections.remove(connection.id); }
/** * Removes an object. The remote end of the ObjectSpace's connections will no longer be able to * access it. */ public void remove(int objectID) { Object object = idToObject.remove(objectID); if (TRACE) { trace("kryonet", "Object " + objectID + " removed from ObjectSpace: " + object); } }
/** Removes an object. The remote end of the ObjectSpace's connections will no longer be able to access it. */ public void remove (int objectID) { Object object = idToObject.remove(objectID); if (object != null) objectToID.remove(object, 0); if (TRACE) trace("kryonet", "Object " + objectID + " removed from ObjectSpace: " + object); }
public void unregister(int classId) { Registration registration = idToRegistration.remove(classId); classToRegistration.remove(registration.getType()); getRegistration(int.class); /* make sure that we bust the memoized cache in superclass */ }
/** * Removes an object. The remote end of the ObjectSpace's connections will no longer be able to * access it. */ public void remove(Object object) { if (!idToObject.containsValue(object, true)) { return; } int objectID = idToObject.findKey(object, true, -1); idToObject.remove(objectID); if (TRACE) { trace("kryonet", "Object " + objectID + " removed from ObjectSpace: " + object); } }
/** Removes an object. The remote end of the ObjectSpace's connections will no longer be able to access it. */ public void remove (Object object) { if (!idToObject.containsValue(object, true)) return; int objectID = idToObject.findKey(object, true, -1); idToObject.remove(objectID); objectToID.remove(object, 0); if (TRACE) trace("kryonet", "Object " + objectID + " removed from ObjectSpace: " + object); }
Connection connection = pendingConnections.remove(fromConnectionID); if (connection != null) { if (connection.udpRemoteAddress != null) {
Connection connection = pendingConnections.remove(fromConnectionID); if (connection != null) { if (connection.udpRemoteAddress != null) continue outer;