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?