Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 346 for parameter (0.16 sec)

  1. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

      public void testStringConverterSerialization() {
        SerializableTester.reserializeAndAssert(Shorts.stringConverter());
      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Short> none = Arrays.<Short>asList();
        assertThat(Shorts.toArray(none)).isEqualTo(EMPTY);
    
        List<Short> one = Arrays.asList((short) 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/NullnessCasts.java

       * that conversion is safe.
       *
       * <p>This method is intended to help with usages of type parameters that have {@linkplain
       * ParametricNullness parametric nullness}. If a type parameter instead ranges over only non-null
       * types (or if the type is a non-variable type, like {@code String}), then code should almost
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 17 15:44:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testStringConverterSerialization() {
        SerializableTester.reserializeAndAssert(Floats.stringConverter());
      }
    
      public void testToArray() {
        // need explicit type parameter to avoid javac warning!?
        List<Float> none = Arrays.<Float>asList();
        assertThat(Floats.toArray(none)).isEqualTo(EMPTY);
    
        List<Float> one = Arrays.asList((float) 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *       to construct the sample instances. In case of tie, the candidate constructors or
       *       factories are tried one after another until one can be used to construct sample
       *       instances.
       *   <li>For the constructor or static factory method used to construct instances, it's checked
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

              // TODO(cgdecker): Should check for a generic parameter type and error out
              Class<?>[] parameterTypes = method.getParameterTypes();
              checkArgument(
                  parameterTypes.length == 1,
                  "Method %s has @Subscribe annotation but has %s parameters. "
                      + "Subscriber methods must have exactly 1 parameter.",
                  method,
                  parameterTypes.length);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 10.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/InvokableTest.java

      }
    
      public void testConstructor_parameters() throws Exception {
        Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class);
        ImmutableList<Parameter> parameters = delegate.getParameters();
        assertEquals(2, parameters.size());
        assertEquals(String.class, parameters.get(0).getType().getType());
        assertTrue(parameters.get(0).isAnnotationPresent(NotBlank.class));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

      private static boolean isWaitFor(Method method) {
        return method.getName().startsWith("waitFor");
      }
    
      /** Determines whether the given method takes a Guard as its first parameter. */
      private static boolean isGuarded(Method method) {
        Class<?>[] parameterTypes = method.getParameterTypes();
        return parameterTypes.length >= 1 && parameterTypes[0] == Monitor.Guard.class;
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFuturesCatchingSpecialization.java

     */
    @ElementTypesAreNonnullByDefault
    abstract class GwtFuturesCatchingSpecialization {
      /*
       * In the GWT versions of the methods (below), every exceptionType parameter is required to be
       * Class<Throwable>. To handle only certain kinds of exceptions under GWT, you'll need to write
       * your own instanceof tests.
       */
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 08 20:30:27 GMT 2022
    - 2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TestThread.java

     * method equivalent to {@link
     * java.util.concurrent.locks.ReentrantLock#hasWaiters(java.util.concurrent.locks.Condition)},
     * except that the method parameter must accept whatever condition-like object is passed into {@code
     * callAndAssertWaits} by the test.
     *
     * @param <L> the type of the lock-like object to be used
     * @author Justin T. Sampson
     */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumSet.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import java.util.Set;
    
    /**
     * GWT emulation of {@link ImmutableEnumSet}. The type parameter is not bounded by {@code Enum<E>}
     * to avoid code-size bloat.
     *
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumSet<E> extends ForwardingImmutableSet<E> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.3K bytes
    - Viewed (0)
Back to top