Home
last modified time | relevance | path

Searched refs:DistanceNode (Results 1 – 8 of 8) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/draft/
DIntDistanceNode.java10 import org.unicode.cldr.draft.XLocaleDistance.DistanceNode;
19 final class IntDistanceNode extends DistanceNode {
47 public static DistanceNode from(int distance, IntDistanceNode.IntDistanceTable otherTable) { in from()
48 …return otherTable == null ? new DistanceNode(distance) : new IntDistanceNode(distance, otherTable); in from()
57 private final DistanceNode[][] distanceNodes; // map from desired, supported => node
65 for (Entry<String, Map<String, DistanceNode>> e1 : source.subtables.entrySet()) { in loadIds()
67 for (Entry<String, DistanceNode> e2 : e1.getValue().entrySet()) { in loadIds()
81 distanceNodes = new DistanceNode[size][size]; in IntDistanceTable()
84 for (Entry<String, Map<String, DistanceNode>> e1 : source.subtables.entrySet()) { in IntDistanceTable()
86 for (Entry<String, DistanceNode> e2 : e1.getValue().entrySet()) { in IntDistanceTable()
[all …]
DXLocaleDistance.java125 public DistanceNode getInternalNode(String any, String any2) { in getInternalNode()
139 public static class DistanceNode { class in XLocaleDistance
142 public DistanceNode(int distance) { in DistanceNode() method in XLocaleDistance.DistanceNode
152 if (!(obj instanceof DistanceNode)) { in equals()
155 DistanceNode other = (DistanceNode) obj; in equals()
266 static class StringDistanceNode extends DistanceNode {
320DistanceNode regionNode = ((StringDistanceTable) scriptNode.distanceTable).subtables.get(ANY).get(… in XLocaleDistance()
333 final Map<String, Map<String, DistanceNode>> subtables;
335 StringDistanceTable(Map<String, Map<String, DistanceNode>> tables) { in StringDistanceTable()
363 Map<String, DistanceNode> sub2 = subtables.get(desired); in getDistance()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DXLocaleDistance.java224 public DistanceNode getInternalNode(String any, String any2) { in getInternalNode()
239 public static class DistanceNode { class in XLocaleDistance
242 public DistanceNode(int distance) { in DistanceNode() method in XLocaleDistance.DistanceNode
255 && distance == ((DistanceNode) obj).distance); in equals()
360 static class StringDistanceNode extends DistanceNode {
415DistanceNode regionNode = ((StringDistanceTable)scriptNode.distanceTable).subtables.get(ANY).get(A… in XLocaleDistance()
430 final Map<String, Map<String, DistanceNode>> subtables;
432 StringDistanceTable(Map<String, Map<String, DistanceNode>> tables) { in StringDistanceTable()
464 Map<String, DistanceNode> sub2 = subtables.get(desired); in getDistance()
469 DistanceNode value = sub2.get(supported); // <*/desired, supported> in getDistance()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DXLocaleDistance.java217 public DistanceNode getInternalNode(String any, String any2) { in getInternalNode()
229 public static class DistanceNode { class in XLocaleDistance
232 public DistanceNode(int distance) { in DistanceNode() method in XLocaleDistance.DistanceNode
245 && distance == ((DistanceNode) obj).distance); in equals()
350 static class StringDistanceNode extends DistanceNode {
405DistanceNode regionNode = ((StringDistanceTable)scriptNode.distanceTable).subtables.get(ANY).get(A… in XLocaleDistance()
419 final Map<String, Map<String, DistanceNode>> subtables;
421 StringDistanceTable(Map<String, Map<String, DistanceNode>> tables) { in StringDistanceTable()
453 Map<String, DistanceNode> sub2 = subtables.get(desired); in getDistance()
458 DistanceNode value = sub2.get(supported); // <*/desired, supported> in getDistance()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DXLocaleDistanceTest.java12 import org.unicode.cldr.draft.XLocaleDistance.DistanceNode;
131 DistanceNode distanceNode = internalGetDistanceTable.getInternalNode(first, second); in checkTables()
137 if (distanceNode.getClass() != DistanceNode.class) { in checkTables()
144 if (distanceNode.getClass() == DistanceNode.class) { in checkTables()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DXLocaleDistanceTest.java21 import android.icu.impl.locale.XLocaleDistance.DistanceNode;
141 DistanceNode distanceNode = internalGetDistanceTable.getInternalNode(first, second); in checkTables()
147 if (distanceNode.getClass() != DistanceNode.class) { in checkTables()
154 if (distanceNode.getClass() == DistanceNode.class) { in checkTables()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DXLocaleDistanceTest.java20 import com.ibm.icu.impl.locale.XLocaleDistance.DistanceNode;
138 DistanceNode distanceNode = internalGetDistanceTable.getInternalNode(first, second); in checkTables()
144 if (distanceNode.getClass() != DistanceNode.class) { in checkTables()
151 if (distanceNode.getClass() == DistanceNode.class) { in checkTables()
/external/icu/icu4j/
Dcoverage-exclusion.txt330 com/ibm/icu/impl/locale/XLocaleDistance$DistanceNode#equals:(Ljava/lang/Object;)Z
331 com/ibm/icu/impl/locale/XLocaleDistance$DistanceNode#hashCode:()I
332 com/ibm/icu/impl/locale/XLocaleDistance$DistanceNode#toString:()Ljava/lang/String;
335 …alNode:(Ljava/lang/String;Ljava/lang/String;)Lcom/ibm/icu/impl/locale/XLocaleDistance$DistanceNode;