public static boolean isSame ( List < URL > urls1 , List < URL > urls2 ) { if ( urls1 == null || urls2 == null ) { return false ; } if ( urls1 . size ( ) != urls2 . size ( ) ) { return false ; } return urls1 . containsAll ( urls2 ) ; }
Check if two lists have the same urls . If any list is empty return false