public static List < ReqUrl > getUrlListFromValidationDatas ( List < ValidationData > datas ) { Map < String , ReqUrl > urlMap = new HashMap <> ( ) ; datas . stream ( ) . forEach ( data -> { ReqUrl url = new ReqUrl ( data ) ; urlMap . put ( url . getUniqueKey ( ) , url ) ; } ) ; return urlMap . entrySet ( ) . stream ( ) . map ( entry -> entry . getValue ( ) ) . collect ( Collectors . toList ( ) ) ; }
Gets url list from validation datas .