Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for returnValue (0.17 sec)

  1. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        private final @Nullable Object[] passedArgs;
        private final @Nullable Object returnValue;
        private final AtomicInteger called = new AtomicInteger();
    
        InteractionTester(Class<T> interfaceType, Method method) {
          this.interfaceType = interfaceType;
          this.method = method;
          this.passedArgs = getParameterValues(method);
          this.returnValue = new FreshValueGenerator().generateFresh(method.getReturnType());
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        private final @Nullable Object[] passedArgs;
        private final @Nullable Object returnValue;
        private final AtomicInteger called = new AtomicInteger();
    
        InteractionTester(Class<T> interfaceType, Method method) {
          this.interfaceType = interfaceType;
          this.method = method;
          this.passedArgs = getParameterValues(method);
          this.returnValue = new FreshValueGenerator().generateFresh(method.getReturnType());
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

          values.add(null);
        }
    
        this.values = values;
      }
    
      @Override
      final void collectOneValue(int index, @ParametricNullness V returnValue) {
        List<@Nullable Present<V>> localValues = values;
        if (localValues != null) {
          localValues.set(index, new Present<>(returnValue));
        }
      }
    
      @Override
      final void handleAllCompleted() {
        List<@Nullable Present<V>> localValues = values;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

              }
    
              private Object invokeListMethod(Method method, Object[] args) throws Throwable {
                try {
                  Object returnValue = method.invoke(delegate, args);
                  mutateDelegate();
                  return returnValue;
                } catch (InvocationTargetException e) {
                  throw e.getCause();
                } catch (IllegalAccessException e) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListCopyOfConcurrentlyModifiedInputTest.java

              }
    
              private Object invokeListMethod(Method method, Object[] args) throws Throwable {
                try {
                  Object returnValue = method.invoke(delegate, args);
                  mutateDelegate();
                  return returnValue;
                } catch (InvocationTargetException e) {
                  throw e.getCause();
                } catch (IllegalAccessException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/CombinedFuture.java

        super(futures, allMustSucceed, false);
        this.task = new CallableInterruptibleTask(callable, listenerExecutor);
        init();
      }
    
      @Override
      void collectOneValue(int index, @CheckForNull Object returnValue) {}
    
      @Override
      void handleAllCompleted() {
        CombinedFutureInterruptibleTask<?> localTask = task;
        if (localTask != null) {
          localTask.execute();
        }
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

       * collectsValues} is true, called for each future when all futures complete.
       */
      abstract void collectOneValue(int index, @ParametricNullness InputT returnValue);
    
      abstract void handleAllCompleted();
    
      /** Adds the chain to the seen set, and returns whether all the chain was new to us. */
      private static boolean addCausalChain(Set<Throwable> seen, Throwable param) {
    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)
  9. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      private static <T> AsyncCallable<T> constantAsyncCallable(
          final @Nullable ListenableFuture<T> returnValue) {
        return new AsyncCallable<T>() {
          @Override
          public ListenableFuture<T> call() {
            return returnValue;
          }
        };
      }
    
      /** Runnable which can be called a single time, and only after {@link #expectCall} is called. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top