Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 2,056 for sizeOf (0.19 sec)

  1. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        assertNull(map.getInstance(Integer.class));
        assertEquals(2, map.size());
      }
    
      public void testParameterizedType() {
        TypeToken<ImmutableList<Integer>> type = new TypeToken<ImmutableList<Integer>>() {};
        map.putInstance(type, ImmutableList.of(1));
        assertEquals(1, map.size());
        assertEquals(ImmutableList.of(1), map.getInstance(type));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_additional_status_codes/test_tutorial001_py310.py

        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Wrestlers", "size": None}
    
    
    @needs_py310
    def test_create(client: TestClient):
        response = client.put("/items/red", json={"name": "Chillies"})
        assert response.status_code == 201, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 738 bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

    import java.util.stream.Stream;
    
    /**
     * Test stream operation speed.
     *
     * @author Louis Wasserman
     */
    public class StreamsBenchmark {
      @Param({"1", "10", "100", "1000", "10000"})
      private int size;
    
      enum CollectionType {
        ARRAY_LIST(ArrayList::new),
        LINKED_LIST(LinkedList::new);
    
        final Supplier<Collection<Object>> supplier;
    
        private CollectionType(Supplier<Collection<Object>> supplier) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/go/GoForm.java

    import java.util.HashMap;
    import java.util.Map;
    
    import org.lastaflute.web.validation.Required;
    
    import jakarta.validation.constraints.Size;
    
    public class GoForm {
        @Required
        @Size(max = 100)
        public String docId;
    
        @Size(max = 10000)
        @Required
        public String rt;
    
        public String hash;
    
        @Required
        public String queryId;
    
        public Integer order;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dict/stemmeroverride/CreateForm.java

    import jakarta.validation.constraints.Size;
    
    /**
     * @author shinsuke
     * @author Keiichi Watanabe
     */
    public class CreateForm {
    
        @Required
        public String dictId;
    
        @ValidateTypeFailure
        public Integer crudMode;
    
        @Required
        @Size(max = 1000)
        public String input;
    
        @Required
        @Size(max = 1000)
        public String output;
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java

            if (kuromojiItemList == null) {
                reload(null);
            }
    
            if (offset >= kuromojiItemList.size() || offset < 0) {
                return new PagingList<>(Collections.<KuromojiItem> emptyList(), offset, size, kuromojiItemList.size());
            }
    
            int toIndex = offset + size;
            if (toIndex > kuromojiItemList.size()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. cmd/object-api-errors.go

    }
    
    // ObjectTooLarge error returned when the size of the object > max object size allowed (5G) per request.
    type ObjectTooLarge GenericError
    
    func (e ObjectTooLarge) Error() string {
    	return "size of the object greater than what is allowed(5G)"
    }
    
    // ObjectTooSmall error returned when the size of the object < what is expected.
    type ObjectTooSmall GenericError
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                      assertEquals(k3(), k);
                      assertNull(v);
                      return v3();
                    }));
        expectAdded(e3());
        assertEquals(getNumElements() + 1, getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentToAbsent() {
        assertNull(
            "Map.compute(absent, functionReturningNull) should return null",
            getMap()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

                      assertEquals(k3(), k);
                      assertNull(v);
                      return v3();
                    }));
        expectAdded(e3());
        assertEquals(getNumElements() + 1, getMap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testCompute_absentToAbsent() {
        assertNull(
            "Map.compute(absent, functionReturningNull) should return null",
            getMap()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

        sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = entries.get(0);
          if (entries.size() >= 3) {
            c = entries.get(2);
          }
        }
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapFirst() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top