Searched refs:possibleLengths (Results 1 – 9 of 9) sorted by relevance
56 possibleLengths.add((int) Math.log10(prefix) + 1); in readFromSortedMap()75 possibleLengths.clear(); in readExternal()77 possibleLengths.add(objectInput.readInt()); in readExternal()88 int sizeOfLengths = possibleLengths.size(); in writeExternal()90 for (Integer length : possibleLengths) { in writeExternal()
82 possibleLengths.add((int) Math.log10(prefix) + 1); in readFromSortedMap()118 possibleLengths.clear(); in readExternal()120 possibleLengths.add(objectInput.readInt()); in readExternal()161 int sizeOfLengths = possibleLengths.size(); in writeExternal()163 for (Integer length : possibleLengths) { in writeExternal()
34 protected final TreeSet<Integer> possibleLengths = new TreeSet<Integer>(); field in PhonePrefixMapStorageStrategy92 return possibleLengths; in getPossibleLengths()
405 private static boolean arePossibleLengthsEqual(TreeSet<Integer> possibleLengths, in arePossibleLengthsEqual() argument407 if (possibleLengths.size() != desc.getPossibleLengthCount()) { in arePossibleLengthsEqual()412 for (Integer length : possibleLengths) { in arePossibleLengthsEqual()596 NodeList possibleLengths = data.getElementsByTagName(POSSIBLE_LENGTHS); in populatePossibleLengthSets() local597 for (int i = 0; i < possibleLengths.getLength(); i++) { in populatePossibleLengthSets()598 Element element = (Element) possibleLengths.item(i); in populatePossibleLengthSets()
2328 List<Integer> possibleLengths = numberDesc.getPossibleLengthList();2329 if (possibleLengths.size() > 0 && !possibleLengths.contains(actualLength)) {2602 List<Integer> possibleLengths = descForType.getPossibleLengthList().isEmpty()2616 possibleLengths = new ArrayList<>(possibleLengths);2620 possibleLengths.addAll(mobileDesc.getPossibleLengthCount() == 02625 Collections.sort(possibleLengths);2640 if (possibleLengths.get(0) == -1) {2651 int minimumLength = possibleLengths.get(0);2656 } else if (possibleLengths.get(possibleLengths.size() - 1) < actualLength) {2660 return possibleLengths.subList(1, possibleLengths.size()).contains(actualLength)
36 private static final int[] possibleLengths = {8}; field in MetadataFilterTest879 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_liteBuild() local906 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_specialBuild() local940 assertContentsEqual(desc.getPossibleLengthList(), possibleLengths); in testFilterMetadata_emptyFilter() local989 for (int i : possibleLengths) { in getFakeArmeniaPhoneNumberDesc()
160 var possibleLengths = phoneMetadata.getGeneralDesc().possibleLengthArray();161 if (possibleLengths.includes(shortNumberLength)) {
3426 var possibleLengths = descForType.possibleLengthCount() == 0 ?3452 possibleLengths = possibleLengths.concat(3459 possibleLengths.sort();3473 if (possibleLengths[0] == -1) {3484 var minimumLength = possibleLengths[0];3489 } else if (possibleLengths[possibleLengths.length - 1] < actualLength) {3493 return (possibleLengths.indexOf(actualLength, 1) > -1) ?
1508 to use the new possibleLengths metadata. This affects a lot of countries,