fun same( tags1: ArrayList<LinkedHashMap<String?, String?>>, tags2: ArrayList<LinkedHashMap<String?, String?>?> ): Boolean { if (tags1.size() !== tags2.size()) { return false } for (i in 0 until tags1.size()) { if (!tags1[i].equals(tags2[i])) { return false } } return true }
Check if two lists of tags are the same Note : this considers order relevant