private fun checkSearchables(searchablesList: ArrayList<SearchableInfo>) { assertNotNull(searchablesList) val count: Int = searchablesList.size() for (ii in 0 until count) { val si = searchablesList[ii] checkSearchable(si) } }
Generic health checker for an array of searchables . This is designed to pass for any semi-legal searchable , without knowing much about the format of the underlying data . It 's fairly easy for a non-compliant application to provide meta-data that will pass here ( e.g . a non-existent suggestions authority ) .