public static boolean isRegistered(IpCamDevice ipcam) {

		if (ipcam == null) {
			throw new IllegalArgumentException("IP camera device cannot be null");
		}

		Iterator<IpCamDevice> di = DEVICES.iterator();
		while (di.hasNext()) {
			if (di.next().getName().equals(ipcam.getName())) {
				return true;
			}
		}

		return false;
	}
public static boolean isRegistered ( IpCamDevice ipcam ) { if ( ipcam == null ) { throw new IllegalArgumentException ( "IP camera device cannot be null" ) ; } Iterator < IpCamDevice > di = DEVICES . iterator ( ) ; while ( di . hasNext ( ) ) { if ( di . next ( ) . getName ( ) . equals ( ipcam . getName ( ) ) ) { return true ; } } return false ; }
Is device registered?

@param ipcam the IP camera device
@return True if device is registsred, false otherwise