Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 182 for sizeof (0.14 sec)

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

              format(
                  "estimated size of spliterator after trySplit (%s) is larger than original size (%s)",
                  spliterator.estimateSize(), originalSize));
        }
        if (trySplit != null) {
          if (trySplit.estimateSize() > originalSize) {
            fail(
                format(
                    "estimated size of trySplit result (%s) is larger than original size (%s)",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        ImmutableSet.Builder<String> builder = ImmutableSet.builderWithExpectedSize(4);
        builder.add("a");
        assertEquals(1, builder.size);
        builder.add("a");
        assertEquals(1, builder.size);
        builder.add("b", "c", "d");
        assertEquals(4, builder.size);
        Object[] table = builder.hashTable;
        assertNotNull(table);
        assertSame(table, ((RegularImmutableSet<String>) builder.build()).table);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      // Max size is halved due to indexing into double-sized alternatingKeysAndValues
      private static final int BYTE_MAX_SIZE = 1 << (Byte.SIZE - 1); // 2^7 = 128
      private static final int SHORT_MAX_SIZE = 1 << (Short.SIZE - 1); // 2^15 = 32_768
    
      private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

          }
          // We could delegate to super now but it would still box too much
          if (!(object instanceof List)) {
            return false;
          }
          List<?> that = (List<?>) object;
          if (this.size() != that.size()) {
            return false;
          }
          int i = parent.start;
          // Since `that` is very likely RandomAccess we could avoid allocating this iterator...
          for (Object element : that) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Collections2.java

            sb.append(o);
          }
        }
        return sb.append(']').toString();
      }
    
      /** Returns best-effort-sized StringBuilder based on the given collection size. */
      static StringBuilder newStringBuilderForCollection(int size) {
        checkNonnegative(size, "size");
        return new StringBuilder((int) Math.min(size * 8L, Ints.MAX_POWER_OF_TWO));
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

          }
          // We could delegate to super now but it would still box too much
          if (!(object instanceof List)) {
            return false;
          }
          List<?> that = (List<?>) object;
          if (this.size() != that.size()) {
            return false;
          }
          int i = parent.start;
          // Since `that` is very likely RandomAccess we could avoid allocating this iterator...
          for (Object element : that) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        new NullPointerTester().testAllPublicInstanceMethods(new AtomicDoubleArray(1));
      }
    
      /** constructor creates array of given size with all elements zero */
      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

            CacheBuilder.newBuilder()
                .maximumSize(MAX_SIZE)
                .removalListener(removalListener)
                .build(loader);
        for (int i = 0; i < 2 * MAX_SIZE; i++) {
          cache.getUnchecked(i);
          assertTrue(cache.size() <= MAX_SIZE);
        }
    
        assertEquals(MAX_SIZE, CacheTesting.accessQueueSize(cache));
        assertEquals(MAX_SIZE, cache.size());
        CacheTesting.processPendingNotifications(cache);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        assertEquals(Double.doubleToRawLongBits(x), Double.doubleToRawLongBits(y));
      }
    
      /** constructor creates array of given size with all elements zero */
      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
        assertEquals(keySet.size() == 0, keySet.isEmpty());
        assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext());
    
        int expectedKeySetHash = 0;
        for (K key : keySet) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
Back to top