Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 90 for Klinger (0.14 sec)

  1. android/guava/src/com/google/common/util/concurrent/Monitor.java

     * verbosity, and more, from the {@code get} and {@code set} methods. {@code Monitor} implements the
     * same efficient signaling as we had to hand-code in the {@code ReentrantLock} version above.
     * Finally, the programmer no longer has to hand-code the wait loop, and therefore doesn't have to
     * remember to use {@code while} instead of {@code if}.
     *
     * <pre>{@code
     * public class SafeBox<V> {
     *   private V value;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/RangeTest.java

            .addEqualityGroup(Range.all(), Range.all())
            .addEqualityGroup("Phil")
            .testEquals();
      }
    
      @GwtIncompatible // TODO(b/148207871): Restore once Eclipse compiler no longer flakes for this.
      public void testLegacyComparable() {
        Range<LegacyComparable> range = Range.closed(LegacyComparable.X, LegacyComparable.Y);
      }
    
      private static final DiscreteDomain<Integer> UNBOUNDED_DOMAIN =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

      // whatever warnings might come along with it. :(
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
       * <p>The array {@code others} must not be longer than {@code Integer.MAX_VALUE - 12}.
       *
       * @throws NullPointerException if any element is null
       * @since 3.0 (source-compatible since 2.0)
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        /**
         * The map tracking the locks that are known to be acquired before this lock, each associated
         * with an example stack trace. Locks are weakly keyed to allow proper garbage collection when
         * they are no longer referenced.
         */
        final Map<LockGraphNode, ExampleStackTrace> allowedPriorLocks =
            new MapMaker().weakKeys().makeMap();
    
        /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/Hashing.java

       * Comparisons between the two should take this into account.
       *
       * <p>Fingerprint2011() is a form of Murmur2 on strings up to 32 bytes and a form of CityHash for
       * longer strings. It could have been one or the other throughout. The main advantage of the
       * combination is that CityHash has a bunch of special cases for short strings that don't need to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/LongMath.java

         * (double) (k * k) <= (double) x <= (double) ((k + 1) * (k + 1))
         *          since casting to double is nondecreasing.
         *          Note that the right-hand inequality is no longer strict.
         * Math.sqrt(k * k) <= Math.sqrt(x) <= Math.sqrt((k + 1) * (k + 1))
         *          since Math.sqrt is monotonic.
         * (long) Math.sqrt(k * k) <= (long) Math.sqrt(x) <= (long) Math.sqrt((k + 1) * (k + 1))
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractBiMap.java

          checkState(entrySet().contains(this), "entry no longer in map");
          // similar to putInBothMaps, but set via entry
          if (Objects.equal(value, getValue())) {
            return value;
          }
          checkArgument(!containsValue(value), "value already present: %s", value);
          V oldValue = delegate.setValue(value);
          checkState(Objects.equal(value, get(getKey())), "entry no longer in map");
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 14.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TopKSelector.java

            @SuppressWarnings("nullness") // safe because we pass sort() a range that contains real Ts
            T[] castBuffer = (T[]) buffer;
            // We've already taken O(k log k), let's make sure we don't take longer than O(k log k).
            Arrays.sort(castBuffer, left, right + 1, comparator);
            break;
          }
        }
        bufferSize = k;
    
        threshold = uncheckedCastNullableTToT(buffer[minThresholdPosition]);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     *     return map.isEmpty();
     *   }
     * });
     * }</pre>
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * <pre>{@code
     * // Helper function keeps victim stack-unreachable.
     * private WeakReference<Foo> fooWeakRef() {
     *   Foo x = ....;
     *   WeakReference<Foo> weakRef = new WeakReference<>(x);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          int initialSize = map.size();
          iterator.next();
          iterator.remove();
          assertEquals(initialSize - 1, map.size());
          // (We can't assert that the values collection no longer contains the
          // removed value, because the underlying map can have multiple mappings
          // to the same value.)
          assertInvariants(map);
          try {
            iterator.remove();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
Back to top