/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | SingletonImmutableBiMap.java | 41 SingletonImmutableBiMap(K key, V value) { argument 42 super(Collections.singletonMap(checkNotNull(key), checkNotNull(value))); 43 this.singleKey = key; 48 K key, V value, SingletonImmutableBiMap<V, K> inverse) { 49 super(Collections.singletonMap(checkNotNull(key), checkNotNull(value))); 50 this.singleKey = key; 47 SingletonImmutableBiMap( K key, V value, SingletonImmutableBiMap<V, K> inverse) argument
|
H A D | TreeMultimap.java | 44 * through the keys according to the key comparator ordering or the natural 49 * iterate across the keys according to the above key ordering, and for each 50 * key they iterate across the values according to the value ordering. 52 * <p>The multimap does not store duplicate key-value pairs. Adding a new 53 * key-value pair equal to an existing key-value pair has no effect. 91 * @param keyComparator the comparator that determines the key ordering 130 * <p>Creates an empty {@code TreeSet} for a collection of values for one key. 133 * key 140 Collection<V> createCollection(@Nullable K key) { argument [all...] |
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
H A D | ConcurrentMap.java | 28 V putIfAbsent(K key, V value); argument 30 boolean remove(Object key, Object value); argument 32 V replace(K key, V value); argument 34 boolean replace(K key, V oldValue, V newValue); argument
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | SortedListsTest.java | 37 void assertModelAgrees(List<Integer> list, Integer key, int answer, argument 41 if (list.contains(key)) { 42 assertEquals(list.indexOf(key), answer); 47 if (list.contains(key)) { 48 assertEquals(list.lastIndexOf(key), answer); 53 if (list.contains(key)) { 54 assertEquals(key, list.get(answer)); 59 if (list.contains(key)) { 60 assertEquals(list.lastIndexOf(key) + 1, answer); 65 if (list.contains(key)) { [all...] |
/external/guava/guava-tests/test/com/google/common/cache/ |
H A D | TestingWeighers.java | 32 * Returns a {@link Weigher} that uses the integer key as the weight. 53 public int weigh(Object key, Object value) { argument 60 public int weigh(Integer key, Object value) { argument 61 return key; 67 public int weigh(Object key, Integer value) { argument
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ConstrainedSetMultimapTest.java | 44 public void checkKeyValue(String key, String value) { argument 45 checkArgument(!"test".equals(key));
|
H A D | SortedListsTest.java | 39 void assertModelAgrees(List<Integer> list, Integer key, int answer, argument 43 if (list.contains(key)) { 44 assertEquals(list.indexOf(key), answer); 49 if (list.contains(key)) { 50 assertEquals(list.lastIndexOf(key), answer); 55 if (list.contains(key)) { 56 assertEquals(key, list.get(answer)); 61 if (list.contains(key)) { 62 assertEquals(list.lastIndexOf(key) + 1, answer); 67 if (list.contains(key)) { [all...] |
/external/guice/core/src/com/google/inject/ |
H A D | PrivateBinder.java | 30 /** Makes the binding for {@code key} available to the enclosing environment */ 31 void expose(Key<?> key); argument
|
/external/guice/core/src/com/google/inject/internal/ |
H A D | BindingProcessor.java | 75 ConstructorBindingImpl<T> onInjector = ConstructorBindingImpl.create(injector, key, 81 putBinding(invalidBinding(injector, key, source)); 97 = Scoping.scope(key, injector, factory, source, scoping); 98 putBinding(new InstanceBindingImpl<T>(injector, key, source, scopedFactory, injectionPoints, 117 = Scoping.scope(key, injector, factory, source, scoping); 118 putBinding(new ProviderInstanceBindingImpl<T>(injector, key, source, scopedFactory, scoping, 134 key, injector, (InternalFactory<? extends T>) boundProviderFactory, source, scoping); 136 injector, key, source, scopedFactory, scoping, providerKey)); 144 if (key.equals(linkedKey)) { 148 FactoryProxy<T> factory = new FactoryProxy<T>(injector, key, linkedKe 191 bindExposed(PrivateElements privateElements, Key<T> key) argument [all...] |
H A D | DeferredLookups.java | 52 public <T> Provider<T> getProvider(Key<T> key) { argument 53 ProviderLookup<T> lookup = new ProviderLookup<T>(key, key);
|
H A D | ExposedKeyFactory.java | 28 private final Key<T> key; field in class:ExposedKeyFactory 32 ExposedKeyFactory(Key<T> key, PrivateElements privateElements) { argument 33 this.key = key; 39 BindingImpl<T> explicitBinding = privateInjector.state.getExplicitBinding(key); 45 errors.withSource(explicitBinding.getSource()).exposedButNotBound(key);
|
H A D | ExposureBuilder.java | 32 private Key<T> key; field in class:ExposureBuilder 34 public ExposureBuilder(Binder binder, Object source, Key<T> key) { argument 37 this.key = key; 41 if (key.getAnnotationType() != null) { 49 key = Key.get(key.getTypeLiteral(), annotationType); 55 key = Key.get(key.getTypeLiteral(), annotation); 59 return key; [all...] |
H A D | FailableCache.java | 33 public Object load(K key) { 37 result = FailableCache.this.create(key, errors); 45 protected abstract V create(K key, Errors errors) throws ErrorsException; argument 47 public V get(K key, Errors errors) throws ErrorsException { argument 48 Object resultOrError = delegate.getUnchecked(key); 59 boolean remove(K key) { argument 60 return delegate.asMap().remove(key) != null;
|
H A D | SingletonScope.java | 102 public <T> Provider<T> scope(final Key<T> key, final Provider<T> creator) { argument 126 final CycleDetectingLock<Key<?>> creationLock = cycleDetectingLockFactory.create(key);
|
/external/guice/core/src/com/google/inject/spi/ |
H A D | ModuleAnnotatedMethodScanner.java | 41 * Prepares a method for binding. This {@code key} parameter is the key discovered from looking at 42 * the binding annotation and return value of the method. Implementations can modify the key to 43 * instead bind to another key. For example, Multibinder may want to change 48 * key based on the property of the annotation or if any additional preparation is needed for any 52 public abstract <T> Key<T> prepareMethod(Binder binder, Annotation annotation, Key<T> key, argument
|
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
H A D | BindingCollector.java | 37 public BindingCollector addBinding(Key<?> key, TypeLiteral<?> target) { argument 38 if (bindings.containsKey(key)) { 40 new Message("Only one implementation can be specified for " + key))); 43 bindings.put(key, target);
|
/external/guice/extensions/dagger-adapter/src/com/google/inject/daggeradapter/ |
H A D | DaggerMethodScanner.java | 46 Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) { 51 return key; 56 return processSetBinding(binder, key); 60 return key; 63 return key; 67 private static <T> Key<T> processSetBinding(Binder binder, Key<T> key) { argument 68 Multibinder<T> setBinder = Multibinder.newSetBinder(binder, key.getTypeLiteral()); 69 Key<T> newKey = Key.get(key.getTypeLiteral(), UniqueAnnotations.create()); 45 prepareMethod( Binder binder, Annotation rawAnnotation, Key<T> key, InjectionPoint injectionPoint) argument
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
H A D | NameFactory.java | 32 String getClassName(Key<?> key); argument 34 String getAnnotationName(Key<?> key); argument
|
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
H A D | TestScope.java | 43 final Key<T> key, final Provider<T> provider) { 47 T t = (T) inScopeObjectsMap.get(key); 50 inScopeObjectsMap.put(key, t); 42 scope( final Key<T> key, final Provider<T> provider) argument
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | ICUCache.java | 21 // NULL object, which may be used for a cache key 25 public void put(K key, V value); argument 26 public V get(Object key); argument
|
H A D | SimpleCache.java | 47 public V get(Object key) { argument 52 return map.get(key); 59 public void put(K key, V value) { argument 74 map.put(key, value);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
H A D | Extension.java | 20 protected Extension(char key) { argument 21 _key = key; 24 Extension(char key, String value) { argument 25 _key = key;
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
H A D | LocalizedNumberFormatter.java | 37 LocalizedNumberFormatter(NumberFormatterSettings<?> parent, int key, Object value) { argument 38 super(parent, key, value); 149 LocalizedNumberFormatter create(int key, Object value) { argument 150 return new LocalizedNumberFormatter(this, key, value);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
H A D | RbnfLenientScanner.java | 51 * @param key The string to search "str" for 57 * the same as the length of "key") 61 int[] findText(String str, String key, int startingAt); argument
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/normalizer/ |
H A D | IntHashtable.java | 28 public void put(int key, int value) { argument 30 table.remove(new Integer(key)); 32 table.put(new Integer(key), new Integer(value)); 36 public int get(int key) { argument 37 Integer value = table.get(new Integer(key));
|