Home
last modified time | relevance | path

Searched refs:ImmutableSet (Results 1 – 25 of 44) sorted by relevance

12

/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/localedistance/
DTerritoryContainment.java18 import com.google.common.collect.ImmutableSet;
73 Set<String> allContained = ImmutableSet.copyOf(graph.values()); in TerritoryContainment()
74 Set<String> roots = ImmutableSet.copyOf(Sets.difference(graph.keySet(), allContained)); in TerritoryContainment()
75 checkArgument(roots.equals(ImmutableSet.of(WORLD)), in TerritoryContainment()
105 public ImmutableSet<String> getLeafRegionsOf(String region) { in getLeafRegionsOf()
110 public ImmutableSet<String> getLeafRegions() { in getLeafRegions()
115 public ImmutableSet<String> getMacroRegions() { in getMacroRegions()
DPartitionInfo.java21 import com.google.common.collect.ImmutableSet;
139 ImmutableSet<String> contained = territories.getLeafRegionsOf(region); in applyOperation()
324 ImmutableSet<String> leaves = territories.getLeafRegionsOf(macro); in mapMacroRegionsToPartitionIds()
356 partitionGroupIndexer.apply(ImmutableSet.of(".")); in writePartitionLookupTable()
411 public ImmutableSet<String> getPartitionIds(String variable) { in getPartitionIds()
413 return ImmutableSet.of("*"); in getPartitionIds()
415 ImmutableSet<String> result = variableToPartitionIds.get(variable); in getPartitionIds()
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
DNumberingSchemes.java19 import static com.google.common.collect.ImmutableSet.toImmutableSet;
24 import com.google.common.collect.ImmutableSet;
43 ImmutableSet<MetadataKey> allKeys = map.values().stream() in from()
54 public ImmutableSet<DigitSequence> getCallingCodes() { in getCallingCodes()
59 public abstract ImmutableSet<MetadataKey> getKeys(); in getKeys()
DNumberingScheme.java36 import com.google.common.collect.ImmutableSet;
85 ImmutableSet<DigitSequence> nationalPrefix, in create()
114 ImmutableSet.Builder<PhoneRegion> set = ImmutableSet.builder(); in create()
117 ImmutableSet<PhoneRegion> allRegions = set.build(); in create()
138 public abstract ImmutableSet<PhoneRegion> getRegions(); in getRegions()
158 public abstract ImmutableSet<DigitSequence> getNationalPrefixes(); in getNationalPrefixes()
165 ImmutableSet<DigitSequence> prefixes = getNationalPrefixes(); in getPreferredNationalPrefix()
191 public abstract ImmutableSet<PhoneRegion> getMobilePortableRegions(); in getMobilePortableRegions()
256 ImmutableSet<PhoneRegion> actual = REGIONS.extractGroupColumns(xmlTable.getColumns()).keySet(); in checkPossibleRegions()
455 ImmutableSet<Integer> lengths = in checkLocalFormatLengths()
[all …]
DMetadataTableSchema.java20 import com.google.common.collect.ImmutableSet;
59 private static final Regions EMPTY = new Regions(ImmutableSet.of());
87 private static final DigitSequences EMPTY = new DigitSequences(ImmutableSet.of());
DCsvData.java18 import static com.google.common.collect.ImmutableSet.toImmutableSet;
24 import com.google.common.collect.ImmutableSet;
116 ImmutableSet<PhoneRegion> csvRegions = ranges in checkRegions()
133 ImmutableSet<PhoneRegion> shortcodeRegions = in checkRegions()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/
DLocaleIdResolver.java9 import static com.google.common.collect.ImmutableSet.toImmutableSet;
20 import com.google.common.collect.ImmutableSet;
28 public static ImmutableSet<String> expandTargetIds( in expandTargetIds()
43 private ImmutableSet<String> resolve(Set<String> idSpecs) { in resolve()
44 ImmutableSet<String> allAvailableIds = supplementalData.getAvailableLocaleIds(); in resolve()
46 ImmutableSet<String> wildcardIds = idSpecs.stream() in resolve()
87 return ImmutableSet.<String>builder().add("root").addAll(targetIds).build(); in resolve()
DConvertIcuDataTask.java48 import com.google.common.collect.ImmutableSet;
145 private ImmutableSet<String> ids;
160 private ImmutableSet<String> inheritLanguageSubtag = ImmutableSet.of();
217 private ImmutableSet<String> localeIds = ImmutableSet.of();
251 ImmutableSet<String> ids = filter.localeIds.ids; in addConfiguredDirectory()
325 ImmutableSet<String> defaultTargetIds = in execute()
372 private static ImmutableSet<String> parseLocaleIds(String localeIds) { in parseLocaleIds()
376 return ImmutableSet.copyOf(LIST_SPLITTER.splitToList(localeIds)); in parseLocaleIds()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/
DIcuConverterConfig.java21 import com.google.common.collect.ImmutableSet;
46 private ImmutableSet<OutputType> outputTypes = OutputType.ALL;
82 this.outputTypes = ImmutableSet.copyOf(types); in setOutputTypes()
139 private final ImmutableSet<OutputType> outputTypes;
143 private final ImmutableSet<String> allLocaleIds;
167 this.allLocaleIds = ImmutableSet.copyOf(builder.localeIdsMap.values()); in IcuConverterConfig()
217 @Override public ImmutableSet<String> getAllLocaleIds() { in getAllLocaleIds()
221 @Override public ImmutableSet<String> getTargetLocaleIds(IcuLocaleDir dir) { in getTargetLocaleIds()
DPseudoLocales.java38 import com.google.common.collect.ImmutableSet;
89 private static ImmutableSet<String> getLocaleIds() { in getLocaleIds()
130 private final ImmutableSet<CldrPath> pathsToProcess;
148 private static ImmutableSet<CldrPath> getUnresolvedPaths( in getUnresolvedPaths()
151 ImmutableSet.Builder<CldrPath> paths = ImmutableSet.builder(); in getUnresolvedPaths()
247 private final ImmutableSet<CldrPath> pathsToProcess;
251 ImmutableSet<CldrPath> pathsToProcess, in PseudoLocaleData()
DAlternateLocaleData.java7 import static com.google.common.collect.ImmutableSet.toImmutableSet;
22 import com.google.common.collect.ImmutableSet;
113 private final ImmutableSet<CldrPath> toRemove;
DSupplementalData.java36 import com.google.common.collect.ImmutableSet;
55 private static final ImmutableSet<String> PHANTOM_LOCALE_IDS =
56 ImmutableSet.of("ja_JP_TRADITIONAL", "th_TH_TRADITIONAL");
263 private final ImmutableSet<String> availableIds;
276 this.availableIds = ImmutableSet.copyOf(availableIds); in SupplementalData()
283 public ImmutableSet<String> getAvailableLocaleIds() { in getAvailableLocaleIds()
DLdmlConverter.java61 import com.google.common.collect.ImmutableSet;
171 public static final ImmutableSet<OutputType> ALL = ImmutableSet.copyOf(OutputType.values());
209 private final ImmutableSet<String> availableIds;
223 this.availableIds = ImmutableSet.copyOf( in LdmlConverter()
643 private ImmutableSet<String> calculateEmptyFiles( in calculateEmptyFiles()
656 return ImmutableSet.copyOf(Sets.difference(allIds, writtenIds)); in calculateEmptyFiles()
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/regex/
DVarString.java13 import com.google.common.collect.ImmutableSet;
26 ImmutableSet.Builder<Character> requiredChars = ImmutableSet.builder(); in of()
45 private final ImmutableSet<Character> requiredChars;
50 ImmutableSet<Character> requiredChars, in VarString()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DImmutableSet.h957 class ImmutableSet {
971 explicit ImmutableSet(TreeTy* R) : Root(R) {
975 ImmutableSet(const ImmutableSet &X) : Root(X.Root) {
979 ~ImmutableSet() {
983 ImmutableSet &operator=(const ImmutableSet &X) {
1007 ImmutableSet getEmptySet() {
1008 return ImmutableSet(F.getEmptyTree());
1018 LLVM_NODISCARD ImmutableSet add(ImmutableSet Old, value_type_ref V) {
1020 return ImmutableSet(Canonicalize ? F.getCanonicalTree(NewT) : NewT);
1030 LLVM_NODISCARD ImmutableSet remove(ImmutableSet Old, value_type_ref V) {
[all …]
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/mapper/
DPluralsMapperTest.java28 import com.google.common.collect.ImmutableSet;
51 Set<String> locales = ImmutableSet.of("en_GB", "en_NZ"); in testSimple()
95 Set<String> locales1 = ImmutableSet.of("en_GB"); in testGroupDeduplication_subsets()
96 Set<String> locales2 = ImmutableSet.of("en_NZ"); in testGroupDeduplication_subsets()
125 Set<String> locales = ImmutableSet.of("en_GB"); in testGroupDeduplication_type()
150 Set<String> locales1 = ImmutableSet.of("en_GB"); in testGroupDeduplication_locales()
151 Set<String> locales2 = ImmutableSet.of("en_NZ"); in testGroupDeduplication_locales()
DDayPeriodsMapperTest.java28 import com.google.common.collect.ImmutableSet;
52 Set<String> locales = ImmutableSet.of("en_GB", "en_AU", "en_NZ"); in testSimple()
83 Set<String> locales1 = ImmutableSet.of("en_GB"); in testMultipleRuleSets()
84 Set<String> locales2 = ImmutableSet.of("en_AU", "en_NZ"); in testMultipleRuleSets()
112 Set<String> locales = ImmutableSet.of("en_GB"); in testRulesetLabels()
130 Set<String> locales = ImmutableSet.of("foo", "bar"); in testNoDataValidation()
DPluralRangesMapperTest.java27 import com.google.common.collect.ImmutableSet;
42 Set<String> locales = ImmutableSet.of("en_GB", "en_NZ"); in testSimple()
69 Set<String> locales1 = ImmutableSet.of("en_GB"); in testMultipleSets()
70 Set<String> locales2 = ImmutableSet.of("en_AU"); in testMultipleSets()
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/table/
DSchema.java24 import com.google.common.collect.ImmutableSet;
39 private final ImmutableSet.Builder<String> names = ImmutableSet.builder();
82 abstract ImmutableSet<String> names(); in names()
153 public ImmutableSet<String> getNames() { in getNames()
DMultiValue.java25 import com.google.common.collect.ImmutableSet;
61 private final ImmutableSet<T> values;
74 sorted ? ImmutableSortedSet.copyOf(comparator, values) : ImmutableSet.copyOf(values); in MultiValue()
83 public final ImmutableSet<T> getValues() { in getValues()
DCsvTable.java21 import static com.google.common.collect.ImmutableSet.toImmutableSet;
33 import com.google.common.collect.ImmutableSet;
188 for (T key : ImmutableSet.copyOf(table.rowKeySet())) { in filterRows()
222 ImmutableSet<Column<?>> columns = table.columnKeySet().stream() in from()
330 public abstract ImmutableSet<Column<?>> getColumns(); in getColumns()
338 public ImmutableSet<K> getKeys() { in getKeys()
415 .collect(ImmutableSet.toImmutableSet())); in exportCsvWithEmptyColumnsPresent()
419 Writer writer, boolean align, ImmutableSet<Column<?>> columnsToExport) { in exportCsvHelper()
DRangeTable.java22 import static com.google.common.collect.ImmutableSet.toImmutableSet;
33 import com.google.common.collect.ImmutableSet;
197 public ImmutableSet<Column<?>> getColumns() { in getColumns()
361 ImmutableSet<Column<?>> empty = columnRanges.entrySet().stream() in buildMinimal()
426 public ImmutableSet<Column<?>> getColumns() { in getColumns()
435 public <T extends Comparable<T>> ImmutableSet<T> getAssignedValues(Column<T> column) { in getAssignedValues()
441 return rangeMap != null ? rangeMap.getAssignedValues() : ImmutableSet.of(); in getAssignedValues()
503 return subTable(bounds, ImmutableSet.<Column<?>>builder().add(first).add(rest).build()); in subTable()
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/testing/
DTestNumberingScheme.java22 import static com.google.common.collect.ImmutableSet.toImmutableSet;
29 import com.google.common.collect.ImmutableSet;
79 return new TestNumberingScheme(DigitSequence.of(cc), main, ImmutableSet.copyOf(others)); in forCallingCode()
84 private final ImmutableSet<PhoneRegion> otherRegions;
111 DigitSequence cc, PhoneRegion main, ImmutableSet<PhoneRegion> others) { in TestNumberingScheme()
262 ImmutableSet.copyOf(nationalPrefix), in build()
269 ImmutableSet.of()); in build()
276 ImmutableSet<String> assignedFormats = Stream.concat( in build()
309 ImmutableSet<PhoneRegion> regionsToSet = ImmutableSet.copyOf(regions); in setRegions()
/third_party/libphonenumber/migrator/migrator-servlet/src/main/java/com/google/phonenumbers/
DServletMain.java20 import com.google.common.collect.ImmutableSet;
51 public static final ImmutableSet<String> LARGE_COUNTRY_RANGES = ImmutableSet.of(
225ImmutableSet<MigrationEntry> validUntouchedEntriesSet = ImmutableSet.copyOf(report.getValidUntouch… in handleFileMigration()
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/
DColumnGroupTest.java21 import com.google.common.collect.ImmutableSet;
55 assertThat(group.extractGroupColumns(ImmutableSet.of(first, us, prototype, ca, last))) in testExtractGroupColumns()

12