Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1761 - 1770 of 3,731 for qint (0.07 sec)

  1. guava/src/com/google/common/collect/HashMultiset.java

       *
       * @param distinctElements the expected number of distinct elements
       * @throws IllegalArgumentException if {@code distinctElements} is negative
       */
      public static <E extends @Nullable Object> HashMultiset<E> create(int distinctElements) {
        return new HashMultiset<>(distinctElements);
      }
    
      /**
       * Creates a new {@code HashMultiset} containing the specified elements.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/log/LoggerTest.java

        @Test
        public void testPerformance() throws Exception {
            final int num = 100;
            long start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                System.out.println("test" + i);
            }
            final long sysout = System.currentTimeMillis() - start;
            start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                logger.fatal("test" + i);
            }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. docs_src/body_nested_models/tutorial004_py310.py

        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        image: Image | None = None
    
    
    @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: Wed May 11 17:29:02 UTC 2022
    - 455 bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/path-params.md

    ```
    
    本例把 `item_id` 的类型声明为 `int`。
    
    /// check | "检查"
    
    类型声明将为函数提供错误检查、代码补全等编辑器支持。
    
    ///
    
    ## 数据<abbr title="也称为:序列化、解析">转换</abbr>
    
    运行示例并访问 <a href="http://127.0.0.1:8000/items/3" class="external-link" target="_blank">http://127.0.0.1:8000/items/3</a>,返回的响应如下:
    
    ```JSON
    {"item_id":3}
    ```
    
    /// check | "检查"
    
    注意,函数接收并返回的值是 `3`( `int`),不是 `"3"`(`str`)。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/net/InetAddressesTest.java

        }
    
        String validTeredoAddress = "2001:0000:4136:e378:8000:63bf:3fff:fdd2";
        String serverStr = "65.54.227.120";
        String clientStr = "192.0.2.45";
        int port = 40000;
        int flags = 0x8000;
    
        InetAddress ip = InetAddresses.forString(validTeredoAddress);
        assertTrue(InetAddresses.isTeredoAddress((Inet6Address) ip));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  6. docs_src/dependencies/tutorial002.py

    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: CommonQueryParams = Depends(CommonQueryParams)):
        response = {}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 656 bytes
    - Viewed (0)
  7. docs_src/dependencies/tutorial004_an_py39.py

    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
        response = {}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 660 bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Ordering.java

          }
          return uid;
        }
    
        @Override
        public int compare(@CheckForNull Object left, @CheckForNull Object right) {
          if (left == right) {
            return 0;
          } else if (left == null) {
            return -1;
          } else if (right == null) {
            return 1;
          }
          int leftCode = identityHashCode(left);
          int rightCode = identityHashCode(right);
          if (leftCode != rightCode) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

     * returning more-or-less the same answers.
     */
    public class QuantilesAlgorithmTest extends TestCase {
    
      private static final Random RNG = new Random(82674067L);
      private static final int DATASET_SIZE = 1000;
      private static final double ALLOWED_ERROR = 1.0e-10;
      private static final QuantilesAlgorithm REFERENCE_ALGORITHM = QuantilesAlgorithm.SORTING;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MapHashCodeTester<K, V> extends AbstractMapTester<K, V> {
      public void testHashCode() {
        int expectedHashCode = 0;
        for (Entry<K, V> entry : getSampleEntries()) {
          expectedHashCode += hash(entry);
        }
        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries.",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top