Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,595 for SIZE (0.02 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

        assertEquals(size + 2, multimap().size());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPutNullValue_supported() {
        int size = getNumElements();
    
        multimap().put(k3(), null);
    
        assertGet(k3(), Lists.newArrayList((V) null)); // ImmutableList.of can't take null.
        assertEquals(size + 1, multimap().size());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RegularImmutableBiMap.java

        this.alternatingKeysAndValues = alternatingKeysAndValues;
        this.size = size;
        this.keyOffset = 0;
        int tableSize = (size >= 2) ? ImmutableSet.chooseTableSize(size) : 0;
        this.keyHashTable = createHashTableOrThrow(alternatingKeysAndValues, size, tableSize, 0);
        Object valueHashTable = createHashTableOrThrow(alternatingKeysAndValues, size, tableSize, 1);
        this.inverse =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateRequest.java

        }
    
        /**
         * Get the preferred size for send operations
         *
         * @return preferred send size in bytes
         */
        public int getPreferredSendSize() {
            return preferredSendSize;
        }
    
        /**
         * Set the preferred size for send operations
         *
         * @param preferredSendSize preferred send size in bytes
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            when(mockInputData.size()).thenReturn(100);
            request.setInputData(mockInputData);
    
            int size = request.size();
    
            // Base size 120 + 100 = 220, aligned to 8 = 224
            assertEquals(224, size);
            verify(mockInputData).size();
        }
    
        @Test
        @DisplayName("Test size calculation with output data")
        void testSizeWithOutputData() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

        }
    
        @Test
        @DisplayName("Test size calculation with empty dialects array")
        void testSizeWithEmptyDialects() {
            int[] emptyDialects = new int[0];
            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, DEFAULT_SECURITY_MODE, emptyDialects);
    
            // Expected size: 24 (fixed) + 0
            assertEquals(24, request.size());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CartesianList.java

        int[] axesSizeProduct = new int[axes.size() + 1];
        axesSizeProduct[axes.size()] = 1;
        try {
          for (int i = axes.size() - 1; i >= 0; i--) {
            axesSizeProduct[i] = Math.multiplyExact(axesSizeProduct[i + 1], axes.get(i).size());
          }
        } catch (ArithmeticException e) {
          throw new IllegalArgumentException(
              "Cartesian product too large; must have size at most Integer.MAX_VALUE");
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

        }
      }
    
      enum Topology {
        BALANCED {
          @Override
          Optional<BinaryNode> createTree(int size, Random rng) {
            if (size == 0) {
              return Optional.absent();
            } else {
              int leftChildSize = (size - 1) / 2;
              int rightChildSize = size - 1 - leftChildSize;
              return Optional.of(
                  new BinaryNode(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                assertEquals(65535, buffer.getTflags());
            }
    
            @Test
            @DisplayName("Should handle minimum buffer size")
            void testMinimumBufferSize() {
                byte[] testBuffer = new byte[8]; // Minimum size for header
    
                int bytesDecoded = buffer.decode(testBuffer, 0, testBuffer.length);
    
                assertEquals(8, bytesDecoded);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

        int numGoodQueries = (int) (numQueries * hitRate + 0.5);
    
        // add good queries
        int size = elementsInSet.size();
        if (size > 0) {
          int minCopiesOfEachGoodQuery = numGoodQueries / size;
          int extras = numGoodQueries % size;
    
          for (int i = 0; i < minCopiesOfEachGoodQuery; i++) {
            queryList.addAll(elementsInSet);
          }
          List<Element> tmp = new ArrayList<>(elementsInSet);
          shuffle(tmp, random);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClusterException.java

       */
      static RuntimeException create(Collection<? extends Throwable> exceptions) {
        if (exceptions.size() == 0) {
          throw new IllegalArgumentException("Can't create an ExceptionCollection with no exceptions");
        }
        if (exceptions.size() == 1) {
          Throwable temp = exceptions.iterator().next();
          if (temp instanceof RuntimeException) {
            return (RuntimeException) temp;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top