Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for said (0.25 sec)

  1. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      private static final int DEFAULT_CAPACITY = 11;
    
      @VisibleForTesting
      static int initialQueueSize(
          int configuredExpectedSize, int maximumSize, Iterable<?> initialContents) {
        // Start with what they said, if they said it, otherwise DEFAULT_CAPACITY
        int result =
            (configuredExpectedSize == Builder.UNSET_EXPECTED_SIZE)
                ? DEFAULT_CAPACITY
                : configuredExpectedSize;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Optional.java

     * the reference is "absent"); it is never said to "contain {@code null}".
     *
     * <p>A non-null {@code Optional<T>} reference can be used as a replacement for a nullable {@code T}
     * reference. It allows you to represent "a {@code T} that must be present" and a "a {@code T} that
     * might be absent" as two distinct types in your program, which can aid clarity.
     *
     * <p>Some uses of this class include
     *
     * <ul>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Converter.java

         * behavior, so it knows that `convert(a)` returns a non-nullable value, and we don't need to
         * perform even a cast, much less a runtime check.
         *
         * All that said, don't forget that everyone should call converter.convert() instead of
         * converter.apply(), anyway. If clients use only converter.convert(), then their nullness
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Monitor.java

     * (no "hangs" due to incorrect use of {@link java.util.concurrent.locks.Condition#signal
     * Condition.signal}).
     *
     * <p>A thread is said to <i>occupy</i> a monitor if it has <i>entered</i> the monitor but not yet
     * <i>left</i>. Only one thread may occupy a given monitor at any moment. A monitor is also
    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)
  5. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

             * However, we don't expose currentFuture to users, so they can't attach listeners. And the
             * Future might not even be a ListenableFuture, just a plain Future. That said, similar
             * problems can exist with methods like FutureTask.done(), not to mention slow calls to
             * Thread.interrupt() (as discussed in InterruptibleTask). At the end of the day, it's
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSet.java

         * determined experimentally to match our desired probability of false positives.
         */
        // NB: yes, this is surprisingly high, but that's what the experiments said was necessary
        // Raising this number slows the worst-case contains behavior, speeds up hashFloodingDetected,
        // and reduces the false-positive probability.
        static final int MAX_RUN_MULTIPLIER = 13;
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Optional.java

     * the reference is "absent"); it is never said to "contain {@code null}".
     *
     * <p>A non-null {@code Optional<T>} reference can be used as a replacement for a nullable {@code T}
     * reference. It allows you to represent "a {@code T} that must be present" and a "a {@code T} that
     * might be absent" as two distinct types in your program, which can aid clarity.
     *
     * <p>Some uses of this class include
     *
     * <ul>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

       *
       * 2. `other[size] = null` is unsound. We could "fix" this by requiring callers to pass in an
       * array with a nullable element type. But probably they usually want an array with a non-nullable
       * type. That said, we could *accept* a `@Nullable T[]` (which, given that we treat arrays as
       * covariant, would still permit a plain `T[]`) and return a plain `T[]`. But of course that would
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  9. android/guava/src/com/google/common/collect/ImmutableCollection.java

       *
       * 2. `other[size] = null` is unsound. We could "fix" this by requiring callers to pass in an
       * array with a nullable element type. But probably they usually want an array with a non-nullable
       * type. That said, we could *accept* a `@Nullable T[]` (which, given that we treat arrays as
       * covariant, would still permit a plain `T[]`) and return a plain `T[]`. But of course that would
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Converter.java

         * behavior, so it knows that `convert(a)` returns a non-nullable value, and we don't need to
         * perform even a cast, much less a runtime check.
         *
         * All that said, don't forget that everyone should call converter.convert() instead of
         * converter.apply(), anyway. If clients use only converter.convert(), then their nullness
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (1)
Back to top