Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for succeeds (0.15 sec)

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

        AtomicDouble at = new AtomicDouble(1.0);
        assertBitEquals(1.0, at.get());
        for (double x : VALUES) {
          at.lazySet(x);
          assertBitEquals(x, at.get());
        }
      }
    
      /** compareAndSet succeeds in changing value if equal to expected else fails */
      public void testCompareAndSet() {
        double prev = Math.E;
        double unused = Math.E + Math.PI;
        AtomicDouble at = new AtomicDouble(prev);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

          aa.lazySet(i, VALUES[i]);
          assertBitEquals(VALUES[i], aa.get(i));
          aa.lazySet(i, -3.0);
          assertBitEquals(-3.0, aa.get(i));
        }
      }
    
      /** compareAndSet succeeds in changing value if equal to expected else fails */
      public void testCompareAndSet() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i : new int[] {0, SIZE - 1}) {
          double prev = 0.0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_occurrences_unsupported_absent() {
        // notice: we don't care whether it succeeds, or fails with UOE
        try {
          assertEquals(
              "multiset.remove(absent, 2) didn't return 0 or throw an exception",
              0,
              getMultiset().remove(e3(), 2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

          static final int COMPLETED = 2;
          static final int CANCELLED = 4;
          static final int INTERRUPTED = 8;
    
          private V value;
          private Throwable exception;
    
          /*
           * Acquisition succeeds if the future is done, otherwise it fails.
           */
          @Override
          protected int tryAcquireShared(int ignored) {
            if (isDone()) {
              return 1;
            }
            return -1;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FluentFuture.java

       * Future} fails with the given {@code exceptionType}, from the result provided by the {@code
       * fallback}. {@link Function#apply} is not invoked until the primary input has failed, so if the
       * primary input succeeds, it is never invoked. If, during the invocation of {@code fallback}, an
       * exception is thrown, this exception is used as the result of the output {@code Future}.
       *
       * <p>Usage example:
       *
       * <pre>{@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

        return new ClosingFuture<>(future);
      }
    
      /**
       * Starts a {@link ClosingFuture} pipeline with a {@link ListenableFuture}.
       *
       * <p>If {@code future} succeeds, its value will be closed (using {@code closingExecutor)}) when
       * the pipeline is done, even if the pipeline is canceled or fails.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Futures.java

      public static <V extends @Nullable Object> V getDone(Future<V> future) throws ExecutionException {
        /*
         * We throw IllegalStateException, since the call could succeed later. Perhaps we "should" throw
         * IllegalArgumentException, since the call could succeed with a different argument. Those
         * exceptions' docs suggest that either is acceptable. Google's Java Practices page recommends
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * creation and removal (including automatic removal of zeroes). If the modification of an
       * AtomicInteger results in zero, we compareAndSet the value to zero; if that succeeds, we remove
       * the entry from the Map. If another operation sees a zero in the map, it knows that the entry is
       * about to be removed, so this operation may remove it (often by replacing it with a new
       * AtomicInteger).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/Futures.java

      public static <V extends @Nullable Object> V getDone(Future<V> future) throws ExecutionException {
        /*
         * We throw IllegalStateException, since the call could succeed later. Perhaps we "should" throw
         * IllegalArgumentException, since the call could succeed with a different argument. Those
         * exceptions' docs suggest that either is acceptable. Google's Java Practices page recommends
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    		if _, ok := err.(BucketExists); ok {
    			// Though bucket exists locally, we send the site-replication
    			// hook to ensure all sites have this bucket. If the hook
    			// succeeds, the client will still receive a bucket exists
    			// message.
    			globalSiteReplicationSys.MakeBucketHook(ctx, bucket, opts)
    		}
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
Back to top