Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 445 for least (0.02 sec)

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

        if (value <= 0) {
          return 0;
        } else if (value >= (1L << 32)) {
          return -1;
        } else {
          return (int) value;
        }
      }
    
      /**
       * Returns the least value present in {@code array}, treating values as unsigned.
       *
       * @param array a <i>nonempty</i> array of unsigned {@code int} values
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Feb 09 16:22:33 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        if (size > maxSize || journalRebuildRequired()) {
          cleanupQueue.schedule(cleanupTask)
        }
      }
    
      /**
       * We only rebuild the journal when it will halve the size of the journal and eliminate at least
       * 2000 ops.
       */
      private fun journalRebuildRequired(): Boolean {
        val redundantOpCompactThreshold = 2000
        return redundantOpCount >= redundantOpCompactThreshold &&
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/CharMatcher.java

        int len = sequence.length();
        int first;
        int last;
    
        for (first = 0; first < len; first++) {
          if (!matches(sequence.charAt(first))) {
            break;
          }
        }
        for (last = len - 1; last > first; last--) {
          if (!matches(sequence.charAt(last))) {
            break;
          }
        }
    
        return sequence.subSequence(first, last + 1).toString();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 53.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Suppliers.java

        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
          long nanos = expirationNanos;
          long now = System.nanoTime();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Striped.java

     *
     * @author Dimitris Andreou
     * @since 13.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public abstract class Striped<L> {
      /**
       * If there are at least this many stripes, we assume the memory usage of a ConcurrentMap will be
       * smaller than a large array. (This assumes that in the lazy case, most stripes are unused. As
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Predicates.java

          }
        }
    
        @Override
        /*
         * We should probably not have implemented equals() at all, but given that we did, we can't
         * provide a better implementation than the input Collection, at least without dramatic changes
         * like copying it to a new Set—which might then test for element equality differently.
         */
        @SuppressWarnings("UndefinedEquals")
        public boolean equals(@Nullable Object obj) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/StatsAccumulator.java

      }
    
      double sumOfSquaresOfDeltas() {
        return sumOfSquaresOfDeltas;
      }
    
      /**
       * Calculates the new value for the accumulated mean when a value is added, in the case where at
       * least one of the previous mean and the value is non-finite.
       */
      static double calculateNewMeanNonFinite(double previousMean, double value) {
        /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

       * require its own suppression, since it is also unsound. toArray(T[]) is just a mess from a
       * nullness perspective. The signature below at least has the virtue of being relatively simple.
       */
      @SuppressWarnings("nullness")
      public final <T extends @Nullable Object> T[] toArray(T[] other) {
        checkNotNull(other);
        int size = size();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

          if (breakingWhitespace().matches((char) c)) {
            assertTrue(Integer.toHexString(c), whitespace().matches((char) c));
          }
        }
      }
    
      // The next tests require ICU4J and have, at least for now, been sliced out
      // of the open-source view of the tests.
    
      @J2ktIncompatible
      @GwtIncompatible // Character.isISOControl
      public void testJavaIsoControl() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

        cache.close()
        createNewCacheWithSize(10)
        set("a", "a", "a")
        set("b", "b", "b")
        set("c", "c", "c")
        set("d", "d", "d")
        set("e", "e", "e")
        cache["b"]!!.close() // 'B' is now least recently used.
    
        // Causing the size to grow to 12 should evict 'A'.
        set("f", "f", "f")
        // Causing the size to grow to 12 should evict 'C'.
        set("g", "g", "g")
        cache.flush()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 75.7K bytes
    - Viewed (0)
Back to top