Searched refs:RWLong (Results 1 – 3 of 3) sorted by relevance
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Counter.java | 28 Map<T, RWLong> map; 42 map = new TreeMap<T, RWLong>(comparator); in Counter() 44 map = new LinkedHashMap<T, RWLong>(); in Counter() 48 static private final class RWLong implements Comparable<RWLong> { class in Counter 55 synchronized (RWLong.class) { // make thread-safe 60 public int compareTo(RWLong that) { in compareTo() 77 RWLong count = map.get(obj); in add() 78 if (count == null) map.put(obj, count = new RWLong()); in add() 85 RWLong count = map.get(obj); in add() 86 if (count == null) map.put(obj, count = new RWLong()); in add() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | Counter.java | 27 Map<T,RWLong> map; 37 map = new TreeMap<T, RWLong>(comparator); in Counter() 39 map = new LinkedHashMap<T, RWLong>(); in Counter() 43 static private final class RWLong implements Comparable<RWLong> { class in Counter 49 synchronized (RWLong.class) { // make thread-safe 54 public int compareTo(RWLong that) { in compareTo() 69 RWLong count = map.get(obj); in add() 70 if (count == null) map.put(obj, count = new RWLong()); in add() 80 RWLong count = map.get(obj); in get() 102 RWLong count; [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | Counter.java | 24 Map<T,RWLong> map; 34 map = new TreeMap<T, RWLong>(comparator); in Counter() 36 map = new LinkedHashMap<T, RWLong>(); in Counter() 40 static private final class RWLong implements Comparable<RWLong> { class in Counter 46 synchronized (RWLong.class) { // make thread-safe 51 public int compareTo(RWLong that) { in compareTo() 66 RWLong count = map.get(obj); in add() 67 if (count == null) map.put(obj, count = new RWLong()); in add() 77 RWLong count = map.get(obj); in get() 99 RWLong count; [all …]
|