Code example for Vector

Methods: contains, isEmpty, remove

0
stakes.add(obj);
	} 
	 
	public void removeStake(Object obj) {
		if (!stakes.contains(obj)) return;
		stakes.remove(obj);
		if (stakes.isEmpty() && sharedConn != null) {
			if (!getSocketTimeout().isAlive()) getSocketTimeout().start(); 
		} 
	} 
 
	public HttpSocketConnection getSharedConnection() { 
		if (sharedConn == null) {
			System.out.println("starting new connection!");
			sharedConn = new HttpSocketConnection(getApplicationContext());
			sharedConn.connect();
		} 
		return sharedConn;
	}