boolean function ( List < String > arg0 , List < String > arg1 ) { if ( arg0 == null && arg1 == null ) { return true ; } if ( arg0 == null || arg1 == null || arg0 . size ( ) != arg1 . size ( ) ) { return false ; } Collections . sort ( arg0 ) ; Collections . sort ( arg1 ) ; return arg0 . equals ( arg1 ) ; }
checks string lists for equality independent of the order of elements in the lists . note that order of the elements in the lists will be changed as a result of sorting , but this is not a concern usually since the order does not matter . concode_field_sep Logger log concode_field_sep Scope findScopeByKey concode_elem_sep Map<String,UriTemplate> getMergedUriTemplates concode_elem_sep List<String> getAllAvailableRoles concode_elem_sep String getDefaultAPIPolicy concode_elem_sep Map<String,Policy> getPolicies concode_elem_sep boolean checkAllowedRoles concode_elem_sep boolean isTimeStampsEquals concode_elem_sep String generateOperationIdFromPath concode_elem_sep boolean validateTargetState concode_elem_sep void logDebug concode_elem_sep List<String> getAllRolesOfUser concode_elem_sep void validate