Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for casValue (0.07 sec)

  1. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      /**
       * Performs a {@linkplain java.lang.invoke.VarHandle#compareAndSet compare-and-set} operation on
       * {@link #valueField} of {@code future}.
       */
      static boolean casValue(AbstractFutureState<?> future, @Nullable Object expect, Object update) {
        return ATOMIC_HELPER.casValue(future, expect, update);
      }
    
      /** Returns the value of the future, using a volatile read. */
      final @Nullable Object value() {
        return valueField;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      /**
       * Performs a {@linkplain java.lang.invoke.VarHandle#compareAndSet compare-and-set} operation on
       * {@link #valueField} of {@code future}.
       */
      static boolean casValue(AbstractFutureState<?> future, @Nullable Object expect, Object update) {
        return ATOMIC_HELPER.casValue(future, expect, update);
      }
    
      /** Returns the value of the future, using a volatile read. */
      final @Nullable Object value() {
        return valueField;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

         * anything that might slow down execution on such a hot path. Given that the methods are only
         * package-private, I feel OK with just not testing them for NPE.
         *
         * Note that testing casValue is particularly dangerous because it uses Unsafe under some
         * versions of Java, and apparently Unsafe can cause SIGSEGV instead of NPE—almost as if it's
         * not safe.
         */
        concat(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertThat(MediaType.parse("text/plain; charset =utf-8").charset()).hasValue(UTF_8);
        assertThat(MediaType.parse("text/plain; charset= utf-8").charset()).hasValue(UTF_8);
        assertThat(MediaType.parse("text/plain; charset = utf-8").charset()).hasValue(UTF_8);
        assertThat(MediaType.parse("text/plain;charset =utf-8").charset()).hasValue(UTF_8);
      }
    
      public void testGetCharset() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testTryFind() {
        Iterable<String> list = newArrayList("cool", "pants");
        assertThat(tryFind(list, equalTo("cool"))).hasValue("cool");
        assertThat(tryFind(list, equalTo("pants"))).hasValue("pants");
        assertThat(tryFind(list, Predicates.alwaysTrue())).hasValue("cool");
        assertThat(tryFind(list, Predicates.alwaysFalse())).isAbsent();
        assertCanIterateAgain(list);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          @SuppressWarnings("unchecked")
          K castKey = (K) key;
          @SuppressWarnings("unchecked") // similar to the above
          V castValue = (V) value;
    
          alertListenerIfPresent(castKey, castValue, RemovalCause.EXPLICIT);
          remove(key);
          return true;
        }
        return false;
      }
    
      @Override
      public boolean replace(K key, V oldValue, V newValue) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      }
    
      public void testTryFind() {
        Iterable<String> list = newArrayList("cool", "pants");
        assertThat(tryFind(list, equalTo("cool"))).hasValue("cool");
        assertThat(tryFind(list, equalTo("pants"))).hasValue("pants");
        assertThat(tryFind(list, Predicates.alwaysTrue())).hasValue("cool");
        assertThat(tryFind(list, Predicates.alwaysFalse())).isAbsent();
        assertCanIterateAgain(list);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
Back to top