Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for longSize (0.39 sec)

  1. android/guava/src/com/google/common/cache/LocalCache.java

        }
        return true;
      }
    
      long longSize() {
        Segment<K, V>[] segments = this.segments;
        long sum = 0;
        for (Segment<K, V> segment : segments) {
          sum += Math.max(0, segment.count); // see https://github.com/google/guava/issues/2108
        }
        return sum;
      }
    
      @Override
      public int size() {
        return Ints.saturatedCast(longSize());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/cache/LocalCache.java

          return sum == 0L;
        }
        return true;
      }
    
      long longSize() {
        Segment<K, V>[] segments = this.segments;
        long sum = 0;
        for (Segment<K, V> segment : segments) {
          sum += segment.count;
        }
        return sum;
      }
    
      @Override
      public int size() {
        return Ints.saturatedCast(longSize());
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun httpWithExcessiveHeaders() {
        val longLine = "HTTP/1.1 200 " + stringFill('O', 256 * 1024) + "K"
        server.protocols = listOf(Protocol.HTTP_1_1)
        server.enqueue(
          MockResponse.Builder()
            .status(longLine)
            .body("I'm not even supposed to be here today.")
            .build(),
        )
        executeSynchronously("/")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top