Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 271 for has_value (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cache.kt

        internal fun readInt(source: BufferedSource): Int {
          try {
            val result = source.readDecimalLong()
            val line = source.readUtf8LineStrict()
            if (result < 0L || result > Integer.MAX_VALUE || line.isNotEmpty()) {
              throw IOException("expected an int but was \"$result$line\"")
            }
            return result.toInt()
          } catch (e: NumberFormatException) {
            throw IOException(e.message)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * @return the previous count of the element before the operation; possibly zero
       * @throws IllegalArgumentException if {@code occurrences} is negative, or if the resulting amount
       *     would exceed {@link Integer#MAX_VALUE}
       */
      @CanIgnoreReturnValue
      @Override
      public int add(E element, int occurrences) {
        checkNotNull(element);
        if (occurrences == 0) {
          return count(element);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/BigIntegerMath.java

       * infinite {@code double} values are considered infinitely far away. For example, 2^2000 is not
       * representable as a double, but {@code roundToDouble(BigInteger.valueOf(2).pow(2000), HALF_UP)}
       * will return {@code Double.MAX_VALUE}, not {@code Double.POSITIVE_INFINITY}.
       *
       * <p>For the case of {@link RoundingMode#HALF_EVEN}, this implementation uses the IEEE 754
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        // Setup
        File file = createTempFile();
        // Test
        assertThrows(
            IllegalArgumentException.class,
            () -> Files.map(file, MapMode.READ_WRITE, (long) Integer.MAX_VALUE + 1));
      }
    
      public void testGetFileExtension() {
        assertEquals("txt", Files.getFileExtension(".txt"));
        assertEquals("txt", Files.getFileExtension("blah.txt"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/CharSource.java

        } finally {
          closer.close();
        }
      }
    
      private long countBySkipping(Reader reader) throws IOException {
        long count = 0;
        long read;
        while ((read = reader.skip(Long.MAX_VALUE)) != 0) {
          count += read;
        }
        return count;
      }
    
      /**
       * Appends the contents of this source to the given {@link Appendable} (such as a {@link Writer}).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        ZERO(0L, "0ms"),
        SMALL(SMALL_TIMEOUT_MILLIS, SMALL_TIMEOUT_MILLIS + "ms"),
        LARGE(UNEXPECTED_HANG_DELAY_MILLIS * 2, (2 * UNEXPECTED_HANG_DELAY_MILLIS) + "ms"),
        MAX(Long.MAX_VALUE, "+oo");
    
        final long millis;
        final String label;
    
        Timeout(long millis, String label) {
          this.millis = millis;
          this.label = label;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        ZERO(0L, "0ms"),
        SMALL(SMALL_TIMEOUT_MILLIS, SMALL_TIMEOUT_MILLIS + "ms"),
        LARGE(UNEXPECTED_HANG_DELAY_MILLIS * 2, (2 * UNEXPECTED_HANG_DELAY_MILLIS) + "ms"),
        MAX(Long.MAX_VALUE, "+oo");
    
        final long millis;
        final String label;
    
        Timeout(long millis, String label) {
          this.millis = millis;
          this.label = label;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * and a fixed number of values. Each key must match the regex `[a-z0-9_-]{1,64}`. Values are byte
     * sequences, accessible as streams or files. Each value must be between `0` and `Int.MAX_VALUE`
     * bytes in length.
     *
     * The cache stores its data in a directory on the filesystem. This directory must be exclusive to
     * the cache; the cache may delete or overwrite files from its directory. It is an error for
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

         */
        private static final int UNSET_EXPECTED_SIZE = -1;
    
        private final Comparator<B> comparator;
        private int expectedSize = UNSET_EXPECTED_SIZE;
        private int maximumSize = Integer.MAX_VALUE;
    
        private Builder(Comparator<B> comparator) {
          this.comparator = checkNotNull(comparator);
        }
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        val inFinished = false
        val flushHeaders: Boolean
        val stream: Http2Stream
        val streamId: Int
    
        writer.withLock {
          this.withLock {
            if (nextStreamId > Int.MAX_VALUE / 2) {
              shutdown(REFUSED_STREAM)
            }
            if (isShutdown) {
              throw ConnectionShutdownException()
            }
            streamId = nextStreamId
            nextStreamId += 2
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top