Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1321 - 1330 of 7,384 for _class (0.05 sec)

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

    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link FakeTimeLimiter}.
     *
     * @author Jens Nyman
     */
    public class FakeTimeLimiterTest extends TestCase {
    
      private static final int DELAY_MS = 50;
      private static final String RETURN_VALUE = "abc";
    
      private TimeLimiter timeLimiter;
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetsTest.java

            .setDefault(Class.class, SomeEnum.class) // for newEnumSet
            .testAllPublicStaticMethods(Sets.class);
      }
    
      public void testNewSetFromMap() {
        Set<Integer> set = Sets.newSetFromMap(new HashMap<Integer, Boolean>());
        set.addAll(SOME_COLLECTION);
        verifySetContents(set, SOME_COLLECTION);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

       * Creates a new, empty instance of the class under test.
       *
       * @return a new, empty map instance.
       * @throws UnsupportedOperationException if it's not possible to make an empty instance of the
       *     class under test.
       */
      protected abstract Map<K, V> makeEmptyMap() throws UnsupportedOperationException;
    
      /**
       * Creates a new, non-empty instance of the class under test.
       *
       * @return a new, non-empty map instance.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(0));
      }
    
      public void testScale_negative() {
        assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(-4));
      }
    
      public void testScale_index_negative() {
        Quantiles.Scale intermediate = Quantiles.scale(10);
        assertThrows(IllegalArgumentException.class, () -> intermediate.index(-1));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

        return callables;
      }
    
      private static final class WrappedCallable<T> implements Callable<T> {
        private final Callable<T> delegate;
    
        public WrappedCallable(Callable<T> delegate) {
          this.delegate = delegate;
        }
    
        @Override
        public T call() throws Exception {
          return delegate.call();
        }
      }
    
      private static final class WrappedRunnable implements Runnable {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. docs_src/body_nested_models/tutorial007_py310.py

    from pydantic import BaseModel, HttpUrl
    
    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        images: list[Image] | None = None
    
    
    class Offer(BaseModel):
        name: str
        description: str | None = None
        price: float
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 520 bytes
    - Viewed (0)
  7. docs/en/docs/reference/uploadfile.md

    # `UploadFile` class
    
    You can define *path operation function* parameters to be of the type `UploadFile` to receive files from the request.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import UploadFile
    ```
    
    ::: fastapi.UploadFile
        options:
            members:
                - file
                - filename
                - size
                - headers
                - content_type
                - read
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 472 bytes
    - Viewed (0)
  8. docs_src/body_multiple_params/tutorial005_py310.py

    from fastapi import Body, FastAPI
    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: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 369 bytes
    - Viewed (0)
  9. docs_src/body_nested_models/tutorial002_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: list[str] = []
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 369 bytes
    - Viewed (0)
  10. docs_src/body_nested_models/tutorial003_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 371 bytes
    - Viewed (0)
Back to top