Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 351 - 360 of 791 for puts (0.03 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

            } catch (InvocationTargetException exception) {
              responseQueue.put(new Response(request.methodName, null, exception.getTargetException()));
              continue;
            } catch (Throwable throwable) {
              responseQueue.put(new Response(request.methodName, null, throwable));
              continue;
            }
            responseQueue.put(new Response(request.methodName, result, null));
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/cache/ForwardingCache.java

       */
      public ImmutableMap<K, V> getAllPresent(Iterable<? extends Object> keys) {
        return delegate().getAllPresent(keys);
      }
    
      /**
       * @since 11.0
       */
      @Override
      public void put(K key, V value) {
        delegate().put(key, value);
      }
    
      /**
       * @since 12.0
       */
      @Override
      public void putAll(Map<? extends K, ? extends V> m) {
        delegate().putAll(m);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  3. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java

                Document document = Document.of(pomXml);
                // Use a mutable map since the strategy modifies it
                Map<Path, Document> pomMap = new HashMap<>();
                pomMap.put(Paths.get("pom.xml"), document);
    
                UpgradeContext context = createMockContext(TestUtils.createOptionsWithModelVersion(targetModelVersion));
    
                UpgradeResult result = strategy.doApply(context, pomMap);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 38.8K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

        public @Nullable V get(Object key) {
          assertTrue(Thread.holdsLock(mutex));
          return super.get(key);
        }
    
        @Override
        public @Nullable V put(K key, V value) {
          assertTrue(Thread.holdsLock(mutex));
          return super.put(key, value);
        }
    
        @Override
        public void putAll(Map<? extends K, ? extends V> map) {
          assertTrue(Thread.holdsLock(mutex));
          super.putAll(map);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/AbstractTable.java

      @Override
      public @Nullable V put(
          @ParametricNullness R rowKey, @ParametricNullness C columnKey, @ParametricNullness V value) {
        return row(rowKey).put(columnKey, value);
      }
    
      @Override
      public void putAll(Table<? extends R, ? extends C, ? extends V> table) {
        for (Table.Cell<? extends R, ? extends C, ? extends V> cell : table.cellSet()) {
          put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6K bytes
    - Click Count (0)
  6. docs_src/encoder/tutorial001_py310.py

    from pydantic import BaseModel
    
    fake_db = {}
    
    
    class Item(BaseModel):
        title: str
        timestamp: datetime
        description: str | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{id}")
    def update_item(id: str, item: Item):
        json_compatible_item_data = jsonable_encoder(item)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 430 bytes
    - Click Count (0)
  7. docs_src/response_change_status_code/tutorial001_py310.py

    from fastapi import FastAPI, Response, status
    
    app = FastAPI()
    
    tasks = {"foo": "Listen to the Bar Fighters"}
    
    
    @app.put("/get-or-create-task/{task_id}", status_code=200)
    def get_or_create_task(task_id: str, response: Response):
        if task_id not in tasks:
            tasks[task_id] = "This didn't exist before"
            response.status_code = status.HTTP_201_CREATED
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 391 bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0);
    
        // asMap.put saves 3
        cache.asMap().put(3, -3);
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(4, 5, 6, 7, 8, 9, 0, 3);
    
        // asMap.replace saves 4
        cache.asMap().replace(4, -4);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 19.1K bytes
    - Click Count (0)
  9. docs_src/body/tutorial004_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item, q: str | None = None):
        result = {"item_id": item_id, **item.model_dump()}
        if q:
            result.update({"q": q})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 414 bytes
    - Click Count (0)
  10. docs_src/body_multiple_params/tutorial005_an_py310.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
        results = {"item_id": item_id, "item": item}
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 409 bytes
    - Click Count (0)
Back to Top