Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 47 for 17 (0.12 sec)

  1. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

     *
     * <p>Advantages compared to {@code int[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
     *       #toString} behavior you expect
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

            new ImmutableRangeMap.Builder<Integer, Integer>()
                .put(Range.closed(2, 4), 5)
                .put(Range.open(6, 7), 3)
                .put(Range.closedOpen(8, 10), 4)
                .put(Range.openClosed(15, 17), 2)
                .build();
    
        ImmutableMap<Range<Integer>, Integer> test = nonEmptyRangeMap.asMapOfRanges();
    
        for (Range<Integer> range : test.keySet()) {
          SerializableTester.reserializeAndAssert(range);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

     *
     * <p>Advantages compared to {@code double[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
     *       #toString} behavior you expect.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Stopwatch.java

     *
     * <pre>{@code
     * Stopwatch.createStarted(
     *      new Ticker() {
     *        public long read() {
     *          return android.os.SystemClock.elapsedRealtimeNanos(); // requires API Level 17
     *        }
     *      });
     * }</pre>
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("GoodTime") // lots of violations
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  5. README.md

    5.  Our classes are not designed to protect against a malicious caller. You
        should not use them for communication between trusted and untrusted code.
    
    6.  For the mainline flavor, we test the libraries using OpenJDK 8, 11, and 17
        on Linux, with some additional testing on newer JDKs and on Windows. Some
        features, especially in `com.google.common.io`, may not work correctly in
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

            new ImmutableRangeMap.Builder<Integer, Integer>()
                .put(Range.closed(2, 4), 5)
                .put(Range.open(6, 7), 3)
                .put(Range.closedOpen(8, 10), 4)
                .put(Range.openClosed(15, 17), 2)
                .build();
    
        ImmutableMap<Range<Integer>, Integer> test = nonEmptyRangeMap.asMapOfRanges();
    
        for (Range<Integer> range : test.keySet()) {
          SerializableTester.reserializeAndAssert(range);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/Striped64.java

                }
              } finally {
                busy = 0;
              }
              collide = false;
              continue; // Retry with expanded table
            }
            h ^= h << 13; // Rehash
            h ^= h >>> 17;
            h ^= h << 5;
            hc[0] = h; // Record index for next time
          } else if (busy == 0 && cells == as && casBusy()) {
            boolean init = false;
            try { // Initialize table
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/MathTesting.java

        for (int i = 1; i <= 40; i++) {
          intValues.add(i);
        }
        // Now add values near 2^N for lots of values of N.
        for (int exponent : asList(2, 3, 4, 9, 15, 16, 17, 24, 25, 30)) {
          int x = 1 << exponent;
          intValues.add(x, x + 1, x - 1);
        }
        intValues.add(9999).add(10000).add(10001).add(1000000); // near powers of 10
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        @Override
        public SampleElements<Entry<String, Integer>> samples() {
          return new SampleElements<>(
              mapEntry("foo", 5),
              mapEntry("bar", 3),
              mapEntry("baz", 17),
              mapEntry("quux", 1),
              mapEntry("toaster", -2));
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Entry<String, Integer>[] createArray(int length) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/MathTesting.java

        for (int i = 1; i <= 40; i++) {
          intValues.add(i);
        }
        // Now add values near 2^N for lots of values of N.
        for (int exponent : asList(2, 3, 4, 9, 15, 16, 17, 24, 25, 30)) {
          int x = 1 << exponent;
          intValues.add(x, x + 1, x - 1);
        }
        intValues.add(9999).add(10000).add(10001).add(1000000); // near powers of 10
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
Back to top