/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Relation.java | 33 public class Relation<K, V> implements Freezable<Relation<K,V>> { // TODO: add , Map<K, Collection<… class 39 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { in of() 40 return new Relation<>(map, setCreator); in of() 43 …public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setCo… in of() 44 return new Relation<>(map, setCreator, setComparator); in of() 47 public Relation(Map<K, Set<V>> map, Class<?> setCreator) { in Relation() method in Relation 52 public Relation(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { in Relation() method in Relation 109 return data.equals(((Relation<?, ?>) o).data); in equals() 180 public void putAll(Relation<? extends K, ? extends V> t) { in putAll() 265 public Relation<K,V> addAllInverted(Relation<V,K> source) { in addAllInverted() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Relation.java | 35 public class Relation<K, V> implements Freezable<Relation<K,V>> { // TODO: add , Map<K, Collection<… class 41 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { in of() 42 return new Relation<>(map, setCreator); in of() 45 …public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setCo… in of() 46 return new Relation<>(map, setCreator, setComparator); in of() 49 public Relation(Map<K, Set<V>> map, Class<?> setCreator) { in Relation() method in Relation 54 public Relation(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { in Relation() method in Relation 111 return data.equals(((Relation<?, ?>) o).data); in equals() 182 public void putAll(Relation<? extends K, ? extends V> t) { in putAll() 267 public Relation<K,V> addAllInverted(Relation<V,K> source) { in addAllInverted() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | CheckEnglishCurrencyNames.java | 19 import com.ibm.icu.impl.Relation; 31 …Relation<String, String> currencyCodesWithDates = Relation.of(new TreeMap<String, Set<String>>(), … in main() 32 …Relation<String, String> modernCurrencyCodes2territory = Relation.of(new TreeMap<String, Set<Strin… in main() 82 …Relation<String, String> territory2official = Relation.of(new TreeMap<String, Set<String>>(), Tree… in main() 98 …Relation<String, String> currency2symbols = Relation.of(new TreeMap<String, Set<String>>(), TreeSe… in main() 99 …Map<String, Relation<String, String>> currency2symbol2locales = new TreeMap<String, Relation<Strin… in main() 133 Relation<String, String> rel = currency2symbol2locales.get(currency); in main() 136 … rel = Relation.of(new TreeMap<String, Set<String>>(), TreeSet.class)); in main()
|
D | ShowChildren.java | 19 import com.ibm.icu.impl.Relation; 31 …Relation<String, String> parent2children = Relation.of(new TreeMap<String, Set<String>>(), TreeSet… in main() 45 …Map<String, Relation<String, String>> path2value2locales = new TreeMap<String, Relation<String, St… in main() 59 Relation<String, String> value2locales = path2value2locales.get(path); in main() 62 … value2locales = Relation.of(new LinkedHashMap<String, Set<String>>(), TreeSet.class)); in main() 79 for (Entry<String, Relation<String, String>> datum : path2value2locales.entrySet()) { in main() 82 Relation<String, String> value2locales = datum.getValue(); in main()
|
D | FindPreferredHours.java | 26 import com.ibm.icu.impl.Relation; 112 …final Relation<String, Hours> lang2Hours = Relation.of(new TreeMap<String, Set<Hours>>(), TreeSet.… in main() 152 …Map<String, Relation<Character, String>> region2Preferred2locales = new TreeMap<String, Relation<C… in main() 153 …Relation<String, Character> region2Allowed = Relation.of(new TreeMap<String, Set<Character>>(), Tr… in main() 175 Relation<Character, String> items = region2Preferred2locales.get(region); in main() 178 … items = Relation.of(new TreeMap<Character, Set<String>>(), TreeSet.class)); in main() 186 Relation<PreferredAndAllowedHour, String> preferred2Region = Relation.of( in main() 190 for (Entry<String, Relation<Character, String>> e : region2Preferred2locales.entrySet()) { in main() 193 Relation<Character, String> preferredSet = e.getValue(); in main() 282 private static String showInfo(Relation<Character, String> preferredSet) { in showInfo()
|
D | CompareStockDatetime.java | 13 import com.ibm.icu.impl.Relation; 31 …Map<String, Relation<String, String>> lengthToSkeletonToLocales = new TreeMap<String, Relation<Str… in main() 53 Relation<String, String> skeletonToLocales = lengthToSkeletonToLocales.get(key); in main() 55 …lengthToSkeletonToLocales.put(key, skeletonToLocales = Relation.of(new TreeMap<String, Set<String>… in main() 62 for (Entry<String, Relation<String, String>> entry : lengthToSkeletonToLocales.entrySet()) { in main()
|
D | PluralRulesFactory.java | 18 import com.ibm.icu.impl.Relation; 174 public Relation<ULocale, FixedDecimal> getExtraSamples() { in getExtraSamples() 183 private Relation<ULocale, FixedDecimal> EXTRA_SAMPLES = null; 188 …Relation<ULocale, FixedDecimal> tempSamples = Relation.of(new HashMap<ULocale, Set<FixedDecimal>>(… in loadData() 294 EXTRA_SAMPLES = (Relation<ULocale, FixedDecimal>) tempSamples.freeze(); in loadData()
|
D | GenerateCoverageLevels.java | 34 import com.ibm.icu.impl.Relation; 135 …R5<Level, Inheritance, Integer, String, TreeMap<String, Relation<String, String>>> results = store… in show() 143 TreeMap<String, Relation<String, String>> types = results.get4(); in show() 145 Relation<String, String> attr_values = types.get(key); in show() 169 …TreeMap<String, Relation<String, String>> differences = new TreeMap<String, Relation<String, Strin… 171 R5<Level, Inheritance, Integer, String, TreeMap<String, Relation<String, String>>> add( in add() 192 …R5<Level, Inheritance, Integer, String, TreeMap<String, Relation<String, String>>> results = Row.o… in add() 195 differences = new TreeMap<String, Relation<String, String>>(); in add() 204 …private void clean(XPathParts lastParts2, TreeMap<String, Relation<String, String>> differences2) { in clean() 207 Relation<String, String> attr_values = differences2.get(element); in clean() [all …]
|
D | GenerateItemCounts.java | 47 import com.ibm.icu.impl.Relation; 72 …static Relation<String, String> path2value = Relation.of(new TreeMap<String, Set<String>>(), TreeS… 111 Relation<String, String> oldPath2value = null; in main() 134 path2value = Relation.of(new TreeMap<String, Set<String>>(), TreeSet.class); in main() 152 …static final Relation<String, DtdType> ELEMENTS_OCCURRING = Relation.of(new TreeMap(), TreeSet.cla… 153 …static final Relation<String, DtdType> ELEMENTS_POSSIBLE = Relation.of(new TreeMap(), TreeSet.clas… 154 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_OCCURRING = Relation.of(new Tree… 155 …static final Relation<String, Row.R2<DtdType, String>> ATTRIBUTES_POSSIBLE = Relation.of(new TreeM… 157 private static void checkBadAttributes(Relation<String, String> path2value2, String outputFile) in checkBadAttributes() 288 … Relation<String, String> elementPathToAttributes = Relation.of(new TreeMap<String, Set<String>>(), [all …]
|
D | ShowCoverageLevels.java | 11 import com.ibm.icu.impl.Relation; 25 …Relation<Level, String> values = new Relation(new EnumMap<Level, String>(Level.class), TreeSet.cla… in main() 64 private static int keyValuePairCount(Relation<Level, String> values) { in keyValuePairCount()
|
D | GenerateAliases.java | 20 import com.ibm.icu.impl.Relation; 38 Relation<String, String> goodToBadLanguages = getGoodToBad(aliasInfo, "language"); 39 Relation<String, String> goodToBadTerritories = getGoodToBad(aliasInfo, "territory"); 40 Relation<String, String> goodToBadScripts = getGoodToBad(aliasInfo, "script"); 149 …private Relation<String, String> getGoodToBad(Map<String, Map<String, R2<List<String>, String>>> a… in getGoodToBad() 151 … Relation<String, String> result = Relation.of(new TreeMap<String, Set<String>>(), TreeSet.class); in getGoodToBad() 225 … private Set<String> addExtras(String language, Relation<String, String> goodToBadLanguages) { in addExtras()
|
D | LocaleReplacements.java | 24 import com.ibm.icu.impl.Relation; 36 …static Map<String, Relation<String, Row.R2<String, Set<String>>>> type2reason2itemAndreplacement =… 37 …static Relation<String, String> fixed = Relation.of(new TreeMap<String, Set<String>>(), LinkedHash… 142 … Relation<String, R2<String, Set<String>>> reason2item2replacement = type2reason2itemAndreplacement 147 … reason2item2replacement = Relation.of(new TreeMap<String, Set<R2<String, Set<String>>>>(), in type2reason2itemAndreplacement.put() 213 …for (Entry<String, Relation<String, R2<String, Set<String>>>> entry : type2reason2itemAndreplaceme… in main()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Containment.java | 15 import com.ibm.icu.impl.Relation; 20 static final Relation<String, String> containmentCore = supplementalData 31 static final Relation<String, String> containmentFull = supplementalData 33 static final Relation<String, String> containedToContainer = (Relation<String, String>) Relation 39 static final Relation<String, String> leavesToContainers; 41 leavesToContainers = Relation 57 …static final Relation<String, String> containedToContainerCore = (Relation<String, String>) Relati…
|
D | ElementAttributeInfo.java | 20 import com.ibm.icu.impl.Relation; 30 …private Relation<String, String> element2children = Relation.of(new LinkedHashMap<String, Set<Stri… 31 …private Relation<String, String> element2parents = Relation.of(new LinkedHashMap<String, Set<Strin… 32 …private Relation<String, String> element2attributes = Relation.of(new LinkedHashMap<String, Set<St… 121 public Relation<String, String> getElement2Children() { in getElement2Children() 125 public Relation<String, String> getElement2Parents() { in getElement2Parents() 129 public Relation<String, String> getElement2Attributes() { in getElement2Attributes()
|
D | IsoCurrencyParser.java | 12 import com.ibm.icu.impl.Relation; 109 …private Relation<String, Data> codeList = Relation.of(new TreeMap<String, Set<Data>>(), TreeSet.cl… 110 …private Relation<String, String> countryToCodes = Relation.of(new TreeMap<String, Set<String>>(), … 166 public Relation<String, Data> getCodeList() { in getCodeList() 190 public Relation<String, String> getCountryToCodes() { in getCountryToCodes()
|
D | DtdDataCheck.java | 23 import com.ibm.icu.impl.Relation; 33 …w.R2<DtdType, String>, Relation<Boolean, String>> TYPE_ATTRIBUTE_TO_DIST_ELEMENTS = new TreeMap<Ro… 85 …Relation<String, String> featuresToElements = Relation.of(new TreeMap<String, Set<String>>(), Link… in show() 143 Relation<Boolean, String> info = TYPE_ATTRIBUTE_TO_DIST_ELEMENTS.get(key); in show() 145 …TYPE_ATTRIBUTE_TO_DIST_ELEMENTS.put(key, info = Relation.of(new TreeMap<Boolean, Set<String>>(), T… in show() 247 …for (Entry<R2<DtdType, String>, Relation<Boolean, String>> typeAttributeToDistElement : TYPE_ATTRI… in main() 249 Relation<Boolean, String> distElement = typeAttributeToDistElement.getValue(); in main()
|
D | LanguageInfo.java | 14 import com.ibm.icu.impl.Relation; 26 …private Relation<OfficialStatus, String> statusToRegions = Relation.of(new EnumMap<OfficialStatus,… 33 public Relation<OfficialStatus, String> getStatusToRegions() { in getStatusToRegions()
|
/external/libtextclassifier/utils/calendar/ |
D | calendar_test-include.cc | 31 static_cast<DateParseData::Relation>(0), in TEST_F() 119 data.relation = DateParseData::Relation::NEXT; in TEST_F() 155 DateParseData::Relation::FUTURE, in TEST_F() 175 DateParseData::Relation::NEXT, in TEST_F() 195 DateParseData::Relation::NEXT_OR_SAME, in TEST_F() 215 DateParseData::Relation::LAST, in TEST_F() 235 DateParseData::Relation::PAST, in TEST_F() 256 DateParseData::Relation::FUTURE, in TEST_F() 277 DateParseData::Relation::FUTURE, in TEST_F() 298 DateParseData::Relation::FUTURE, in TEST_F()
|
D | calendar-common.h | 151 case DateParseData::Relation::UNSPECIFIED: in ApplyRelationField() 154 case DateParseData::Relation::NEXT: in ApplyRelationField() 161 case DateParseData::Relation::NEXT_OR_SAME: in ApplyRelationField() 168 case DateParseData::Relation::LAST: in ApplyRelationField() 175 case DateParseData::Relation::NOW: in ApplyRelationField() 177 case DateParseData::Relation::TOMORROW: in ApplyRelationField() 180 case DateParseData::Relation::YESTERDAY: in ApplyRelationField() 183 case DateParseData::Relation::PAST: in ApplyRelationField() 191 case DateParseData::Relation::FUTURE: in ApplyRelationField() 323 (data.relation == DateParseData::Relation::NOW || in GetGranularity() [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestDTDAttributes.java | 20 import com.ibm.icu.impl.Relation; 50 Relation<String, String> toChildren = ElementAttributeInfo.getInstance( in checkOrdering() 114 Relation<String, String> elementToAttributes = ElementAttributeInfo in showDistinguishing() 116 Relation<String, String> distinguishingAttributeToElements = Relation in showDistinguishing() 119 Relation<String, String> nondistinguishingAttributeToElements = Relation in showDistinguishing() 122 Relation<String, String> orderedAttributeToElements = Relation in showDistinguishing() 250 Relation<String, String> mainData = ElementAttributeInfo.getInstance( in checkElements() 252 Relation<String, String> suppData = ElementAttributeInfo.getInstance( in checkElements() 301 Relation<String, String> mainData = ElementAttributeInfo.getInstance( in checkEmpty() 303 Relation<String, String> elementToAttributes = ElementAttributeInfo in checkEmpty() [all …]
|
D | CheckYear.java | 29 import com.ibm.icu.impl.Relation; 50 …static Map<String, Relation<String, String>> stock2skeleton2locales = new LinkedHashMap<String, Re… 53 stock2skeleton2locales.put("date-" + stock, Relation.of( 57 stock2skeleton2locales.put("time-" + stock, Relation.of( 65 Relation<Category, String> category2base = Relation.of( 69 …Map<String, Relation<String, Row.R2<String, String>>> base2BasePatterns2Info = new TreeMap<String,… 101 Relation<String, Row.R2<String, String>> basePatterns2Info = base2BasePatterns2Info in recordBase() 106 basePatterns2Info = Relation in recordBase() 399 … for (Entry<String, Relation<String, String>> stockAndSkeleton2locales : stock2skeleton2locales 442 …for (Entry<String, Relation<String, R2<String, String>>> baseAndBasePatterns2Info : localeInfo.bas… [all …]
|
D | TestSupplementalInfo.java | 71 import com.ibm.icu.impl.Relation; 392 Relation<PluralInfo, String> pluralsToLocale = Relation.of( in TestPluralLocales() 559 …Map<PluralInfo, Relation<Count, Integer>> exceptions = new HashMap<PluralInfo, Relation<Count, Int… in TestDigitPluralCompleteness() 560 Relation<Count, Integer> fallback = Relation.of( in TestDigitPluralCompleteness() 563 Relation<Count, Integer> countToDigits; in TestDigitPluralCompleteness() 572 countToDigits = Relation.of( in TestDigitPluralCompleteness() 587 Relation<String, String> ruleToExceptions = Relation.of( in TestDigitPluralCompleteness() 595 Relation<Count, Integer> countToDigits = exceptions.get(plurals); in TestDigitPluralCompleteness() 759 Relation<String, String> scriptToBase = Relation.of( in TestDefaultScriptCompleteness() 1036 Relation<String, String> map = SUPPLEMENTAL in TestTerritoryContainment() [all …]
|
/external/libtextclassifier/annotator/datetime/ |
D | extractor.cc | 400 const UnicodeText& input, DateParseData::Relation* parsed_relation) const { in ParseRelation() 404 {DatetimeExtractorType_NOW, DateParseData::Relation::NOW}, in ParseRelation() 405 {DatetimeExtractorType_YESTERDAY, DateParseData::Relation::YESTERDAY}, in ParseRelation() 406 {DatetimeExtractorType_TOMORROW, DateParseData::Relation::TOMORROW}, in ParseRelation() 407 {DatetimeExtractorType_NEXT, DateParseData::Relation::NEXT}, in ParseRelation() 409 DateParseData::Relation::NEXT_OR_SAME}, in ParseRelation() 410 {DatetimeExtractorType_LAST, DateParseData::Relation::LAST}, in ParseRelation() 411 {DatetimeExtractorType_PAST, DateParseData::Relation::PAST}, in ParseRelation() 412 {DatetimeExtractorType_FUTURE, DateParseData::Relation::FUTURE}, in ParseRelation()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | TestSupplementalData.java | 30 import com.ibm.icu.impl.Relation; 58 …Relation<String, String> territoryToZones = Relation.<String, String> of(new TreeMap<String, Set<S… in showMultiZones() 97 …Relation<PluralInfo, String> pluralsToLocale = Relation.<PluralInfo, String> of(new HashMap<Plural… in checkPlurals() 133 Relation<String, String> alpha3 = supplementalData.getAlpha3TerritoryMapping(); in checkTerritoryMapping() 170 …Relation<String, String> otherTerritoryToLanguages = Relation.<String, String> of(new TreeMap<Stri… in checkAgainstLanguageScript()
|
D | TestMetazones.java | 26 import com.ibm.icu.impl.Relation; 125 Relation<String, DateRangeAndZone> mzoneToData = Relation.<String, DateRangeAndZone> of( in test() 128 … Relation<String, DateRangeAndZone> zoneToDateRanges = Relation.<String, DateRangeAndZone> of( in test() 144 Relation<String, DateRangeAndZone> mzoneToData, in fillMetazoneData() 145 Relation<String, DateRangeAndZone> zoneToDateRanges) { in fillMetazoneData() 173 Relation<String, DateRangeAndZone> mzoneToData) { in checkMetazoneConsistency() 365 Relation<String, DateRangeAndZone> zoneToDateRanges) { in checkGapsAndOverlaps() 386 Relation<String, DateRangeAndZone> mzoneToData, in checkExemplars() 387 Relation<String, DateRangeAndZone> zoneToData) { in checkExemplars() 483 private void checkCoverage(Relation<String, DateRangeAndZone> zoneToDateRanges) { in checkCoverage()
|