Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 249 for Given (0.04 seconds)

  1. android/guava/src/com/google/common/io/Closer.java

       * ...);} to ensure the compiler knows that it will throw.
       *
       * @return this method does not return; it always throws
       * @throws IOException when the given throwable is an IOException
       * @throws X1 when the given throwable is of the declared type X1
       * @throws X2 when the given throwable is of the declared type X2
       */
      public <X1 extends Exception, X2 extends Exception> RuntimeException rethrow(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

              ;
            }
            assertBitEquals(x, aa.get(i));
            prev = x;
          }
        }
      }
    
      /** getAndSet returns previous value and sets to given value at given index */
      public void testGetAndSet() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i : new int[] {0, SIZE - 1}) {
          double prev = 0.0;
          for (double x : VALUES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        }
      }
    
      /** getAndSet returns previous value and sets to given value */
      public void testGetAndSet() {
        double prev = Math.E;
        AtomicDouble at = new AtomicDouble(prev);
        for (double x : VALUES) {
          assertBitEquals(prev, at.getAndSet(x));
          prev = x;
        }
      }
    
      /** getAndAdd returns previous value and adds given value */
      public void testGetAndAdd() {
        for (double x : VALUES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  4. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateAgpVersionsTest.groovy

    import spock.lang.Specification
    
    class UpdateAgpVersionsTest extends Specification {
    
        def "selects matching gradle major versions when rc available (minimumSupported=#minimumSupported)"() {
            given:
            def gradleVersion = GradleVersion.version("9.2")
            def allVersions = [
                "8.8.0", "8.9.0",
                "9.0.0-alpha01", "9.0.0-beta01", "9.0.0-rc01"
            ].shuffled()
    
            when:
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Jan 15 06:57:24 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/io/Files.java

       * character set.
       *
       * @since 14.0
       */
      public static CharSource asCharSource(File file, Charset charset) {
        return asByteSource(file).asCharSource(charset);
      }
    
      /**
       * Returns a new {@link CharSink} for writing character data to the given file using the given
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jan 05 22:13:21 GMT 2026
    - 32.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

      /**
       * Creates a new {@code AtomicDoubleArray} of the given length, with all elements initially zero.
       *
       * @param length the length of the array
       */
      public AtomicDoubleArray(int length) {
        this.longs = new AtomicLongArray(length);
      }
    
      /**
       * Creates a new {@code AtomicDoubleArray} with the same length as, and all elements copied from,
       * the given array.
       *
       * @param array the array to copy elements from
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

            return result;
          }
        };
      }
    
      /** Returns a {@link CacheLoader} that returns the given {@code constant} for every request. */
      static <K, V> ConstantLoader<K, V> constantLoader(@Nullable V constant) {
        return new ConstantLoader<>(constant);
      }
    
      /** Returns a {@link CacheLoader} that returns the given {@code constant} for every request. */
      static IncrementingLoader incrementingLoader() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/AtomicDouble.java

      public final double get() {
        return longBitsToDouble(value.get());
      }
    
      /**
       * Sets to the given value.
       *
       * @param newValue the new value
       */
      public final void set(double newValue) {
        long next = doubleToRawLongBits(newValue);
        value.set(next);
      }
    
      /**
       * Eventually sets to the given value.
       *
       * @param newValue the new value
       */
      public final void lazySet(double newValue) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/escape/UnicodeEscaper.java

      /** Constructor for use by subclasses. */
      protected UnicodeEscaper() {}
    
      /**
       * Returns the escaped form of the given Unicode code point, or {@code null} if this code point
       * does not need to be escaped. When called as part of an escaping operation, the given code point
       * is guaranteed to be in the range {@code 0 <= cp <= Character#MAX_CODE_POINT}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 24 04:06:11 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        }
      }
    
      /**
       * Generates test cases for the given combination of scenario and timeouts. For methods that take
       * an explicit timeout value, all of the given timeoutsToUse result in individual test cases. For
       * methods that do not take an explicit timeout value, a single test case is generated only if the
       * implicit timeout of that method matches the given timeoutsToUse. For example, enter() is
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
Back to Top