Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 87 for Clarke (0.2 sec)

  1. guava/src/com/google/common/collect/ImmutableRangeSet.java

       * ranges {@code [3..3)} and {@code [4..4)}.
       *
       * <p><b>Warning:</b> Be extremely careful what you do with the {@code asSet} view of a large
       * range set (such as {@code ImmutableRangeSet.of(Range.greaterThan(0))}). Certain operations on
       * such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

       * ranges {@code [3..3)} and {@code [4..4)}.
       *
       * <p><b>Warning:</b> Be extremely careful what you do with the {@code asSet} view of a large
       * range set (such as {@code ImmutableRangeSet.of(Range.greaterThan(0))}). Certain operations on
       * such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // It's possible to race and suspend the thread just before the park call actually takes effect,
        // causing the thread to be suspended for 3.5 seconds, and then park itself for 2 seconds after
        // being resumed. To avoid a flake in this scenario, calculate how long that thread actually
        // waited and assert based on that time. Empirically, the race where the thread ends up waiting
        // for 5.5 seconds happens about 2% of the time.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Lists.java

      public static <E extends @Nullable Object> ArrayList<E> newArrayList(E... elements) {
        checkNotNull(elements); // for GWT
        // Avoid integer overflow when a large array is passed in
        int capacity = computeArrayListCapacity(elements.length);
        ArrayList<E> list = new ArrayList<>(capacity);
        Collections.addAll(list, elements);
        return list;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

          Maps.capacity(-1);
          fail("Negative expected size must result in IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * Tests that nHMWES makes hash maps large enough that adding the expected number of elements
       * won't cause a rehash.
       *
       * <p>As of jdk7u40, HashMap has an empty-map optimization. The argument to new HashMap(int) is
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

          Maps.capacity(-1);
          fail("Negative expected size must result in IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * Tests that nHMWES makes hash maps large enough that adding the expected number of elements
       * won't cause a rehash.
       *
       * <p>As of jdk7u40, HashMap has an empty-map optimization. The argument to new HashMap(int) is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ByteStreams.java

       *       userspace buffer (byte[] or ByteBuffer), then copies them from that buffer into the
       *       destination channel.
       * </ol>
       *
       * This value is intended to be large enough to make the overhead of system calls negligible,
       * without being so large that it causes problems for systems with atypical memory management if
       * approaches 2 or 3 are used.
       */
      private static final int ZERO_COPY_CHUNK_SIZE = 512 * 1024;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/StreamsTest.java

      }
    
      public void testFindLast_refStream() {
        assertThat(findLast(Stream.of())).isEmpty();
        assertThat(findLast(Stream.of("a", "b", "c", "d"))).hasValue("d");
    
        // test with a large, not-subsized Spliterator
        List<Integer> list =
            IntStream.rangeClosed(0, 10000).boxed().collect(Collectors.toCollection(LinkedList::new));
        assertThat(findLast(list.stream())).hasValue(10000);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/NullnessCasts.java

       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
       * or extract a variable, and put the suppression on that. However, a local variable typically
       * doesn't work: Because nullness analyses typically infer the nullness of local variables,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 17 15:44:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CartesianList.java

            axesSizeProduct[i] = IntMath.checkedMultiply(axesSizeProduct[i + 1], axes.get(i).size());
          }
        } catch (ArithmeticException e) {
          throw new IllegalArgumentException(
              "Cartesian product too large; must have size at most Integer.MAX_VALUE");
        }
        this.axesSizeProduct = axesSizeProduct;
      }
    
      private int getAxisIndexForProductIndex(int index, int axis) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top