/external/guava/guava-tests/test/com/google/common/collect/ |
D | ImmutableSetTest.java | 23 import com.google.common.collect.ImmutableSet.Builder; 43 return ImmutableSet.of(); in of() 47 return ImmutableSet.of(e); in of() 51 return ImmutableSet.of(e1, e2); in of() 55 return ImmutableSet.of(e1, e2, e3); in of() 60 return ImmutableSet.of(e1, e2, e3, e4); in of() 65 return ImmutableSet.of(e1, e2, e3, e4, e5); in of() 70 return ImmutableSet.of(e1, e2, e3, e4, e5, e6, rest); in of() 74 return ImmutableSet.copyOf(elements); in copyOf() 78 return ImmutableSet.copyOf(elements); in copyOf() [all …]
|
D | SetsTest.java | 274 ImmutableSet<SomeEnum> none 278 ImmutableSet<SomeEnum> one 282 ImmutableSet<SomeEnum> two 290 ImmutableSet<SomeEnum> original = 297 ImmutableSet<?> deserialized = (ImmutableSet<?>) in.readObject(); 344 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.B, SomeEnum.C); 349 Set<SomeEnum> set = ImmutableSet.of(SomeEnum.A, SomeEnum.B, SomeEnum.C); 696 ImmutableSet<Integer> elements = ImmutableSet.of(); 699 assertEquals(ImmutableSet.of(ImmutableSet.of()), powerSet); 704 ImmutableSet<Integer> elements = ImmutableSet.of(1, 2, 3); [all …]
|
D | EmptyImmutableTableTest.java | 32 return ImmutableSet.of(INSTANCE); in getTestInstances() 43 .addEqualityGroup(ArrayTable.create(ImmutableSet.of("A"), in testEqualsObject() 44 ImmutableSet.of(1))) in testEqualsObject() 65 assertEquals(ImmutableSet.of(), INSTANCE.cellSet()); in testCellSet() 73 assertEquals(ImmutableSet.of(), INSTANCE.columnKeySet()); in testColumnKeySet() 101 assertEquals(ImmutableSet.of(), INSTANCE.rowKeySet()); in testRowKeySet()
|
D | RegularImmutableTableTest.java | 29 private static final ImmutableSet<Cell<Character, Integer, String>> CELLS = 30 ImmutableSet.of( 35 private static final ImmutableSet<Character> ROW_SPACE = 36 ImmutableSet.of('a', 'b'); 38 private static final ImmutableSet<Integer> COLUMN_SPACE = 39 ImmutableSet.of(1, 2); 97 assertTrue(RegularImmutableTable.forCells(ImmutableSet.of( in testForCells() 128 assertEquals(ImmutableSet.of(1, 2), testInstance.columnKeySet()); in testColumnKeySet() 182 assertEquals(ImmutableSet.of('a', 'b'), testInstance.rowKeySet()); in testRowKeySet()
|
D | TransformedSetTest.java | 73 assertEquals(ImmutableSet.of(0, -1, -2, -3), transformed); in testSimpleCases() 78 assertEquals(ImmutableSet.of(0, 1, 3, 4), original); in testSimpleCases() 79 assertEquals(ImmutableSet.of(0, -1, -3, -4), transformed); in testSimpleCases() 84 assertEquals(ImmutableSet.of(0, -3, -4, -5), transformed); in testSimpleCases() 85 assertEquals(ImmutableSet.of(0, 3, 4, 5), original); in testSimpleCases()
|
D | SingletonImmutableTableTest.java | 38 assertEquals(ImmutableSet.of(Tables.immutableCell('a', 1, "blah")), in testCellSet() 48 assertEquals(ImmutableSet.of(1), testTable.columnKeySet()); in testColumnKeySet() 62 assertEquals(ImmutableSet.of('a'), testTable.rowKeySet()); in testRowKeySet() 127 return ImmutableSet.of(testTable); in getTestInstances()
|
/external/llvm/unittests/ADT/ |
D | ImmutableSetTest.cpp | 38 ImmutableSet<int>::Factory f; in TEST_F() 44 ImmutableSet<int> S = f.getEmptySet(); in TEST_F() 52 ImmutableSet<int>::Factory f; in TEST_F() 53 ImmutableSet<int> S = f.getEmptySet(); in TEST_F() 55 ImmutableSet<int> S2 = f.add(S, 3); in TEST_F() 65 ImmutableSet<int> S3 = f.add(S, 2); in TEST_F() 80 ImmutableSet<int>::Factory f; in TEST_F() 81 ImmutableSet<int> S = f.getEmptySet(); in TEST_F() 83 ImmutableSet<int> S2 = f.add(f.add(f.add(S, 3), 4), 5); in TEST_F() 84 ImmutableSet<int> S3 = f.add(f.add(f.add(S2, 9), 20), 43); in TEST_F() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | ImmutableSet.java | 40 public abstract class ImmutableSet<E> extends ForwardingImmutableCollection<E> class 43 ImmutableSet(Set<E> delegate) { in ImmutableSet() method in ImmutableSet 47 ImmutableSet() { in ImmutableSet() method in ImmutableSet 53 public static <E> ImmutableSet<E> of() { in of() 54 return (ImmutableSet<E>) EmptyImmutableSet.INSTANCE; in of() 57 public static <E> ImmutableSet<E> of(E element) { in of() 62 public static <E> ImmutableSet<E> of(E e1, E e2) { in of() 67 public static <E> ImmutableSet<E> of(E e1, E e2, E e3) { in of() 72 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4) { in of() 77 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of() [all …]
|
D | ImmutableSetMultimap.java | 313 ImmutableMap.Builder<K, ImmutableSet<V>> builder = ImmutableMap.builder(); in copyOf() 320 ImmutableSet<V> set = (valueComparator == null) in copyOf() 321 ? ImmutableSet.copyOf(values) in copyOf() 336 ImmutableSetMultimap(ImmutableMap<K, ImmutableSet<V>> map, int size, in ImmutableSetMultimap() 351 @Override public ImmutableSet<V> get(@Nullable K key) { in get() 353 ImmutableSet<V> set = (ImmutableSet<V>) map.get(key); in get() 359 return ImmutableSet.<V>of(); in get() 395 @Override public ImmutableSet<V> removeAll(Object key) { in removeAll() 404 @Override public ImmutableSet<V> replaceValues( in replaceValues() 409 private transient ImmutableSet<Entry<K, V>> entries; [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | ImmutableSet.java | 68 public abstract class ImmutableSet<E> extends ImmutableCollection<E> class 77 public static <E> ImmutableSet<E> of() { in of() 78 return (ImmutableSet<E>) EmptyImmutableSet.INSTANCE; in of() 87 public static <E> ImmutableSet<E> of(E element) { in of() 98 public static <E> ImmutableSet<E> of(E e1, E e2) { in of() 109 public static <E> ImmutableSet<E> of(E e1, E e2, E e3) { in of() 120 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4) { in of() 131 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5) { in of() 143 public static <E> ImmutableSet<E> of(E e1, E e2, E e3, E e4, E e5, E e6, in of() 160 private static <E> ImmutableSet<E> construct(Object... elements) { in construct() [all …]
|
D | RegularImmutableTable.java | 43 private final ImmutableSet<Cell<R, C, V>> cellSet; 45 private RegularImmutableTable(ImmutableSet<Cell<R, C, V>> cellSet) { in RegularImmutableTable() 85 @Override public final ImmutableSet<Cell<R, C, V>> cellSet() { in cellSet() 133 ImmutableSet.Builder<Cell<R, C, V>> cellSetBuilder = ImmutableSet.builder(); in forCellsInternal() 134 ImmutableSet.Builder<R> rowSpaceBuilder = ImmutableSet.builder(); in forCellsInternal() 135 ImmutableSet.Builder<C> columnSpaceBuilder = ImmutableSet.builder(); in forCellsInternal() 141 ImmutableSet<Cell<R, C, V>> cellSet = cellSetBuilder.build(); in forCellsInternal() 143 ImmutableSet<R> rowSpace = rowSpaceBuilder.build(); in forCellsInternal() 147 rowSpace = ImmutableSet.copyOf(rowList); in forCellsInternal() 149 ImmutableSet<C> columnSpace = columnSpaceBuilder.build(); in forCellsInternal() [all …]
|
D | EmptyImmutableTable.java | 68 @Override public ImmutableSet<Cell<Object, Object, Object>> cellSet() { in cellSet() 69 return ImmutableSet.of(); in cellSet() 77 @Override public ImmutableSet<Object> columnKeySet() { in columnKeySet() 78 return ImmutableSet.of(); in columnKeySet() 107 @Override public ImmutableSet<Object> rowKeySet() { in rowKeySet() 108 return ImmutableSet.of(); in rowKeySet() 120 return ImmutableSet.of(); in values()
|
D | SingletonImmutableMap.java | 82 private transient ImmutableSet<Entry<K, V>> entrySet; 84 @Override public ImmutableSet<Entry<K, V>> entrySet() { in entrySet() 85 ImmutableSet<Entry<K, V>> es = entrySet; in entrySet() 86 return (es == null) ? (entrySet = ImmutableSet.of(entry())) : es; in entrySet() 89 private transient ImmutableSet<K> keySet; 91 @Override public ImmutableSet<K> keySet() { in keySet() 92 ImmutableSet<K> ks = keySet; in keySet() 93 return (ks == null) ? (keySet = ImmutableSet.of(singleKey)) : ks; in keySet()
|
D | ImmutableSetMultimap.java | 318 ImmutableMap.Builder<K, ImmutableSet<V>> builder = ImmutableMap.builder(); in copyOf() 325 ImmutableSet<V> set = (valueComparator == null) in copyOf() 326 ? ImmutableSet.copyOf(values) in copyOf() 341 ImmutableSetMultimap(ImmutableMap<K, ImmutableSet<V>> map, int size, in ImmutableSetMultimap() 356 @Override public ImmutableSet<V> get(@Nullable K key) { in get() 358 ImmutableSet<V> set = (ImmutableSet<V>) map.get(key); in get() 364 return ImmutableSet.<V>of(); in get() 400 @Override public ImmutableSet<V> removeAll(Object key) { in removeAll() 409 @Override public ImmutableSet<V> replaceValues( in replaceValues() 414 private transient ImmutableSet<Entry<K, V>> entries; [all …]
|
D | EmptyImmutableMultiset.java | 39 public ImmutableSet<Object> elementSet() { in elementSet() 40 return ImmutableSet.of(); in elementSet() 64 ImmutableSet<Entry<Object>> createEntrySet() { in createEntrySet() 65 return ImmutableSet.of(); in createEntrySet()
|
D | SingletonImmutableTable.java | 49 @Override public ImmutableSet<Cell<R, C, V>> cellSet() { in cellSet() 50 return ImmutableSet.of( in cellSet() 61 @Override public ImmutableSet<C> columnKeySet() { in columnKeySet() 62 return ImmutableSet.of(singleColumnKey); in columnKeySet() 102 @Override public ImmutableSet<R> rowKeySet() { in rowKeySet() 103 return ImmutableSet.of(singleRowKey); in rowKeySet() 116 return ImmutableSet.of(singleValue); in values()
|
D | EmptyImmutableMap.java | 58 @Override public ImmutableSet<Entry<Object, Object>> entrySet() { in entrySet() 59 return ImmutableSet.of(); in entrySet() 62 @Override public ImmutableSet<Object> keySet() { in keySet() 63 return ImmutableSet.of(); in keySet()
|
D | RegularImmutableMap.java | 22 import com.google.common.collect.ImmutableSet.ArrayImmutableSet; 23 import com.google.common.collect.ImmutableSet.TransformedImmutableSet; 190 private transient ImmutableSet<Entry<K, V>> entrySet; 192 @Override public ImmutableSet<Entry<K, V>> entrySet() { in entrySet() 193 ImmutableSet<Entry<K, V>> es = entrySet; in entrySet() 216 private transient ImmutableSet<K> keySet; 218 @Override public ImmutableSet<K> keySet() { in keySet() 219 ImmutableSet<K> ks = keySet; in keySet()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | MathTesting.java | 34 import com.google.common.collect.ImmutableSet; 48 static final ImmutableSet<RoundingMode> ALL_ROUNDING_MODES = ImmutableSet.copyOf(RoundingMode 101 static final ImmutableSet<Integer> POSITIVE_INTEGER_CANDIDATES; 110 ImmutableSet.Builder<Integer> intValues = ImmutableSet.builder(); 138 static final ImmutableSet<Long> POSITIVE_LONG_CANDIDATES; 147 ImmutableSet.Builder<Long> longValues = ImmutableSet.builder(); 171 static final ImmutableSet<BigInteger> POSITIVE_BIGINTEGER_CANDIDATES; 180 ImmutableSet.Builder<BigInteger> bigValues = ImmutableSet.builder(); 203 static final ImmutableSet<Double> INTEGRAL_DOUBLE_CANDIDATES; 204 static final ImmutableSet<Double> FRACTIONAL_DOUBLE_CANDIDATES; [all …]
|
/external/guava/guava/src/com/google/common/net/ |
D | TldPatterns.java | 7 import com.google.common.collect.ImmutableSet; 24 static final Set<String> EXACT = ImmutableSet.of( 4098 static final Set<String> UNDER = ImmutableSet.of( 4197 static final Set<String> EXCLUDED = ImmutableSet.of(
|
/external/clang/include/clang/Analysis/Analyses/ |
D | LiveVariables.h | 35 llvm::ImmutableSet<const Stmt *> liveStmts; 36 llvm::ImmutableSet<const VarDecl *> liveDecls; 43 LivenessValues(llvm::ImmutableSet<const Stmt *> LiveStmts, in LivenessValues() 44 llvm::ImmutableSet<const VarDecl *> LiveDecls) in LivenessValues()
|
/external/llvm/include/llvm/ADT/ |
D | ImmutableSet.h | 931 class ImmutableSet { 945 explicit ImmutableSet(TreeTy* R) : Root(R) { 948 ImmutableSet(const ImmutableSet &X) : Root(X.Root) { 951 ImmutableSet &operator=(const ImmutableSet &X) { 959 ~ImmutableSet() { 975 ImmutableSet getEmptySet() { 976 return ImmutableSet(F.getEmptyTree()); 986 ImmutableSet add(ImmutableSet Old, value_type_ref V) { 988 return ImmutableSet(Canonicalize ? F.getCanonicalTree(NewT) : NewT); 998 ImmutableSet remove(ImmutableSet Old, value_type_ref V) { [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheReferencesTest.java | 25 import com.google.common.collect.ImmutableSet; 49 .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK)) in factoryWithAllKeyStrengths() 50 .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT)); in factoryWithAllKeyStrengths() 97 assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet()); 99 assertEquals(ImmutableSet.of(immutableEntry(key1, value1), immutableEntry(key2, value2)), 116 assertEquals(ImmutableSet.of(key2), cache.asMap().keySet()); 118 assertEquals(ImmutableSet.of(immutableEntry(key2, value2)), cache.asMap().entrySet());
|
D | EmptyCachesTest.java | 26 import com.google.common.collect.ImmutableSet; 362 .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK)) 363 .withValueStrengths(ImmutableSet.copyOf(Strength.values())) 364 .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64)) 365 .withMaximumSizes(ImmutableSet.of(0, 1, 10, 100, 1000)) 366 .withInitialCapacities(ImmutableSet.of(0, 1, 10, 100, 1000)) 367 .withExpireAfterWrites(ImmutableSet.of( 371 .withExpireAfterAccesses(ImmutableSet.of( 375 .withRefreshes(ImmutableSet.of(
|
/external/guava/guava-tests/test/com/google/common/net/ |
D | HttpHeadersTest.java | 22 import com.google.common.collect.ImmutableSet; 49 private static final ImmutableSet<String> UPPERCASE_ACRONYMS = ImmutableSet.of(
|