Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 343 for have (0.22 sec)

  1. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

      /*
       * Ideally, this class would have exposed only constructors that require a non-null cause. See
       * https://github.com/jspecify/jspecify-reference-checker/blob/61aafa4ae52594830cfc2d61c8b113009dbdb045/src/main/java/com/google/jspecify/nullness/NullSpecTransfer.java#L789
       * and https://github.com/jspecify/jspecify/issues/490.
       *
       * (That would also have ensured that its cause was always an Error, rather than possibly another
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         *       thread
         *   <li>If this field's value == null because of unsafe publication, we know that it isn't the
         *       object associated with our thread, because if it was the publication wouldn't have been
         *       unsafe and we'd have seen our thread as the value. This state is also why a new
         *       ThreadConfinedTaskQueue object must be created for each inline execution, because
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       * we're guaranteed to have properly initialized the subclass.
       */
      final void init() {
        /*
         * requireNonNull is safe because this is called from the constructor after `futures` is set but
         * before releaseResources could be called (because we have not yet set up any of the listeners
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                    return 0;
                  case 1:
                    return 1;
                  case 2:
                    return endOfData();
                  default:
                    throw new AssertionError("Should not have been invoked again");
                }
              }
            };
    
        assertTrue(iter.hasNext());
        assertEquals(0, (int) iter.next());
    
        // verify idempotence of hasNext()
        assertTrue(iter.hasNext());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTestType.java

            assertNotNull(res.getClasspath(), "null classpath after compile transform");
            assertEquals(3, res.getClasspath().size(), "compile classpath should have 3 entries");
        }
    
        // ------------------------------------------------------------------------------------------
        @Test
        void testRuntimeClasspathTransform() throws Exception {
            ClasspathContainer res;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

    abstract class AggregateFutureState<OutputT extends @Nullable Object>
        extends AbstractFuture.TrustedFuture<OutputT> {
      // Lazily initialized the first time we see an exception; not released until all the input futures
      // have completed and we have processed them all.
      @CheckForNull private volatile Set<Throwable> seenExceptions = null;
    
      private volatile int remaining;
    
      private static final AtomicHelper ATOMIC_HELPER;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        peekingIterator.remove();
        assertEquals("Should have removed an element", 2, list.size());
        assertFalse("Second element should be gone", list.contains("B"));
      }
    
      static class ThrowsAtEndException extends RuntimeException {
        /* nothing */
      }
    
      /**
       * This Iterator claims to have more elements than the underlying iterable, but when you try to
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ValueGraph.java

       *
       * <p>Thus, two value graphs A and B are equal if <b>all</b> of the following are true:
       *
       * <ul>
       *   <li>A and B have equal {@link #isDirected() directedness}.
       *   <li>A and B have equal {@link #nodes() node sets}.
       *   <li>A and B have equal {@link #edges() edge sets}.
       *   <li>The {@link #edgeValueOrDefault(N, N, V) value} of a given edge is the same in both A and
       *       B.
       * </ul>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

          return;
        }
        fail("should have failed");
      }
    
      public void testEqualsAndSerializableOnReturnValues_serializableButNotEquals() throws Exception {
        try {
          tester.forAllPublicStaticMethods(GoodSerializableFactory.class).testEqualsAndSerializable();
        } catch (AssertionFailedError expected) {
          return;
        }
        fail("should have failed");
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Futures.java

    @ElementTypesAreNonnullByDefault
    public final class Futures extends GwtFuturesCatchingSpecialization {
    
      // A note on memory visibility.
      // Many of the utilities in this class (transform, withFallback, withTimeout, asList, combine)
      // have two requirements that significantly complicate their design.
      // 1. Cancellation should propagate from the returned future to the input future(s).
      // 2. The returned futures shouldn't unnecessarily 'pin' their inputs after completion.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
Back to top