Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 271 for has_value (0.17 sec)

  1. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        out.reset();
      }
    
      public void testReset() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE);
        ByteSource source = out.asByteSource();
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.reset();
        assertTrue(Arrays.equals(new byte[0], source.read()));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 31) - 2));
        assertTrue(MinMaxPriorityQueue.isEvenLevel(Integer.MAX_VALUE - 1));
        assertThrows(IllegalStateException.class, () -> MinMaxPriorityQueue.isEvenLevel((1 << 31) - 1));
        assertThrows(
            IllegalStateException.class, () -> MinMaxPriorityQueue.isEvenLevel(Integer.MAX_VALUE));
        assertThrows(IllegalStateException.class, () -> MinMaxPriorityQueue.isEvenLevel(1 << 31));
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Collections2.java

              // We move to the next non-repeated element.
              permutations = IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r));
              r = 0;
              if (permutations == Integer.MAX_VALUE) {
                return Integer.MAX_VALUE;
              }
            }
            n++;
            r++;
          }
          return IntMath.saturatedMultiply(permutations, IntMath.binomial(n, r));
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          checkMaximumSize(4, 8, maxSize);
          checkMaximumSize(8, 8, maxSize);
        }
    
        checkMaximumSize(1, 8, Long.MAX_VALUE);
        checkMaximumSize(2, 8, Long.MAX_VALUE);
        checkMaximumSize(4, 8, Long.MAX_VALUE);
        checkMaximumSize(8, 8, Long.MAX_VALUE);
    
        // vary initial capacity wrt maximumSize
    
        for (int capacity = 0; capacity < 8; capacity++) {
          checkMaximumSize(1, capacity, 4);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          checkMaximumSize(4, 8, maxSize);
          checkMaximumSize(8, 8, maxSize);
        }
    
        checkMaximumSize(1, 8, Long.MAX_VALUE);
        checkMaximumSize(2, 8, Long.MAX_VALUE);
        checkMaximumSize(4, 8, Long.MAX_VALUE);
        checkMaximumSize(8, 8, Long.MAX_VALUE);
    
        // vary initial capacity wrt maximumSize
    
        for (int capacity = 0; capacity < 8; capacity++) {
          checkMaximumSize(1, capacity, 4);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multiset.java

     * not used in this API). Since the count of an element is represented as an {@code int}, a multiset
     * may never contain more than {@link Integer#MAX_VALUE} occurrences of any one element.
     *
     * <p>{@code Multiset} refines the specifications of several methods from {@code Collection}. It
     * also defines an additional query operation, {@link #count}, which returns the count of an
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInts.java

        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] ^= Integer.MAX_VALUE;
        }
        Arrays.sort(array, fromIndex, toIndex);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] ^= Integer.MAX_VALUE;
        }
      }
    
      /**
       * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit
       * quantities.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/UnsignedInts.java

        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] ^= Integer.MAX_VALUE;
        }
        Arrays.sort(array, fromIndex, toIndex);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] ^= Integer.MAX_VALUE;
        }
      }
    
      /**
       * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit
       * quantities.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      private val taskRunner = taskFaker.taskRunner
      private lateinit var cache: DiskLruCache
      private val toClose = ArrayDeque<DiskLruCache>()
    
      private fun createNewCache() {
        createNewCacheWithSize(Int.MAX_VALUE)
      }
    
      private fun createNewCacheWithSize(maxSize: Int) {
        cache =
          DiskLruCache(filesystem, cacheDir, appVersion, 2, maxSize.toLong(), taskRunner).also {
            toClose.add(it)
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

            reader = new ESSourceReader(client, settings, indexName);
            reader.setScrollSize(1000);
            reader.addSort(SortBuilders.fieldSort("field2").order(SortOrder.DESC));
            count = 0;
            prev = Integer.MAX_VALUE;
            while ((source = reader.read()) != null) {
                int current = Integer.parseInt(source.get("field2").toString());
                assertTrue(prev > current);
                prev = current;
                count++;
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top