Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newReference (5.17 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

      public void testNewReference() throws Exception {
        assertEquals(null, Atomics.newReference().get());
      }
    
      public void testNewReference_withInitialValue() throws Exception {
        assertEquals(null, Atomics.newReference(null).get());
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
      public void testNewReferenceArray_withLength() throws Exception {
        int length = 42;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.5K bytes
    - Viewed (1)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

      public void testNewReference() throws Exception {
        assertEquals(null, Atomics.newReference().get());
      }
    
      public void testNewReference_withInitialValue() throws Exception {
        assertEquals(null, Atomics.newReference(null).get());
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
      public void testNewReferenceArray_withLength() throws Exception {
        int length = 42;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Atomics.java

      public static <V> AtomicReference<@Nullable V> newReference() {
        return new AtomicReference<>();
      }
    
      /**
       * Creates an {@code AtomicReference} instance with the given initial value.
       *
       * @param initialValue the initial value
       * @return a new {@code AtomicReference} with the given initial value
       */
      public static <V extends @Nullable Object> AtomicReference<V> newReference(
          @ParametricNullness V initialValue) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun Jun 20 10:45:35 GMT 2021
    - 2.5K bytes
    - Viewed (0)
Back to top