Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 60 for mutated (0.04 seconds)

  1. android/guava/src/com/google/common/math/Quantiles.java

         *
         * @param dataset the dataset to do the calculation on, which must be non-empty, which will be
         *     cast to doubles (with any associated lost of precision), and which will not be mutated by
         *     this call (it is copied instead)
         * @return the quantile value
         */
        public double compute(Collection<? extends Number> dataset) {
          return computeInPlace(Doubles.toArray(dataset));
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 30.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertSideEffectFree(hash);
        assertReadableBytes(hash);
      }
    
      private static void assertSideEffectFree(HashCode hash) {
        byte[] original = hash.asBytes();
        byte[] mutated = hash.asBytes();
        mutated[0]++;
        assertThat(hash.asBytes()).isEqualTo(original);
      }
    
      private static void assertReadableBytes(HashCode hashCode) {
        assertThat(hashCode.bits()).isAtLeast(32); // sanity
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        assertSideEffectFree(hash);
        assertReadableBytes(hash);
      }
    
      private static void assertSideEffectFree(HashCode hash) {
        byte[] original = hash.asBytes();
        byte[] mutated = hash.asBytes();
        mutated[0]++;
        assertThat(hash.asBytes()).isEqualTo(original);
      }
    
      private static void assertReadableBytes(HashCode hashCode) {
        assertThat(hashCode.bits()).isAtLeast(32); // sanity
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

      private var nextTcpConnectAtNanos = Long.MIN_VALUE
    
      /**
       * Plans currently being connected, and that will later be added to [connectResults]. This is
       * mutated by the call thread only. If is accessed by background connect threads.
       */
      private val tcpConnectsInFlight = CopyOnWriteArrayList<Plan>()
    
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/hash/BloomFilterStrategies.java

          return new LockFreeBitArray(toPlainArray(data));
        }
    
        /**
         * Combines the two BitArrays using bitwise OR.
         *
         * <p>NOTE: Because of the use of atomics, if the other LockFreeBitArray is being mutated while
         * this operation is executing, not all of those new 1's may be set in the final state of this
         * LockFreeBitArray. The ONLY guarantee provided is that all the bits that were set in the other
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

       * exists but cannot be used for another exchange, it is closed and this returns null.
       */
      private fun planReuseCallConnection(): ReusePlan? {
        // This may be mutated by releaseConnectionNoEvents()!
        val candidate = call.connection ?: return null
    
        // Make sure this connection is healthy & eligible for new exchanges. If it's no longer needed
        // then we're on the hook to close it.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertFalse(unmod.entries().contains(nefariousMapEntry("pwnd", 2)));
        assertFalse(unmod.keys().contains("pwnd"));
      }
    
      /**
       * The supplied multimap will be mutated and an unmodifiable instance used in its stead. The
       * multimap must support null keys and values.
       */
      private static void checkUnmodifiableMultimap(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 39.2K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       *
       * <p>For example, verify that calls to remove() actually removed the correct elements.
       *
       * @param elements the expected elements passed to the constructor, as mutated by {@code
       *     remove()}, {@code set()}, and {@code add()} calls
       */
      protected void verify(List<E> elements) {}
    
      /** Executes the test. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 20.8K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

         */
        public ImmutableLongArray build() {
          return count == 0 ? EMPTY : new ImmutableLongArray(array, 0, count);
        }
      }
    
      // Instance stuff here
    
      // The array is never mutated after storing in this field and the construction strategies ensure
      // it doesn't escape this class
      @SuppressWarnings("Immutable")
      private final long[] array;
    
      /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 22K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       *
       * <p>For example, verify that calls to remove() actually removed the correct elements.
       *
       * @param elements the expected elements passed to the constructor, as mutated by {@code
       *     remove()}, {@code set()}, and {@code add()} calls
       */
      protected void verify(List<E> elements) {}
    
      /** Executes the test. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 21.4K bytes
    - Click Count (0)
Back to Top