Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Length (0.16 sec)

  1. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/LocalCache.java

          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
              AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
              int length = table.length();
              for (int i = 0; i < length; ++i) {
                for (ReferenceEntry<K, V> e = table.get(i); e != null; e = e.getNext()) {
                  V entryValue = getLiveValue(e, now);
                  if (entryValue == null) {
    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)
  4. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

        // have at least one matching character).
        int threshold = ((percent * length) + 99) / 100;
        StringBuilder builder = new StringBuilder(length);
        for (int n = 0; n < length; n++) {
          builder.append(
              randomCharFrom(list.get(n) >= threshold ? NONMATCHING_CHARS : matchingChars, rand));
        }
        return builder.toString();
      }
    
      private static char randomCharFrom(String s, Random rand) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
              AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
              int length = table.length();
              for (int i = 0; i < length; ++i) {
                for (ReferenceEntry<K, V> e = table.get(i); e != null; e = e.getNext()) {
                  V entryValue = getLiveValue(e, now);
                  if (entryValue == null) {
    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)
  6. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

        // have at least one matching character).
        int threshold = ((percent * length) + 99) / 100;
        StringBuilder builder = new StringBuilder(length);
        for (int n = 0; n < length; n++) {
          builder.append(
              randomCharFrom(list.get(n) >= threshold ? NONMATCHING_CHARS : matchingChars, rand));
        }
        return builder.toString();
      }
    
      private static char randomCharFrom(String s, Random rand) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      `Come, my head's free at last!' said Alice in a tone of
    delight, which changed into alarm in another moment, when she
    found that her shoulders were nowhere to be found:  all she could
    see, when she looked down, was an immense length of neck, which
    seemed to rise like a stalk out of a sea of green leaves that lay
    far below her.
    
      `What CAN all that green stuff be?' said Alice.  `And where
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

       * it's going to complete at all).
       *
       * <p>[*] To avoid hangs, I've disabled the in-thread calls. This makes the test take (very
       * roughly) 2.5s longer. (2.5s is also the maximum length of time we will wait for a timed get
       * that is expected to succeed; the fact that the numbers match is only a coincidence.) See the
       * comment below for how to restore the fast but hang-y version.
       */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

       * it's going to complete at all).
       *
       * <p>[*] To avoid hangs, I've disabled the in-thread calls. This makes the test take (very
       * roughly) 2.5s longer. (2.5s is also the maximum length of time we will wait for a timed get
       * that is expected to succeed; the fact that the numbers match is only a coincidence.) See the
       * comment below for how to restore the fast but hang-y version.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      `Come, my head's free at last!' said Alice in a tone of
    delight, which changed into alarm in another moment, when she
    found that her shoulders were nowhere to be found:  all she could
    see, when she looked down, was an immense length of neck, which
    seemed to rise like a stalk out of a sea of green leaves that lay
    far below her.
    
      `What CAN all that green stuff be?' said Alice.  `And where
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 145.2K bytes
    - Viewed (0)
Back to top