Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for instantiated (0.26 sec)

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

    import junit.framework.AssertionFailedError;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a
     * test with reference to the same "lock-like object", and then their interactions with that object
     * are choreographed via the various methods on this class.
     *
    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)
  2. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

    import junit.framework.AssertionFailedError;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a
     * test with reference to the same "lock-like object", and then their interactions with that object
     * are choreographed via the various methods on this class.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

      }
    
      /**
       * Instantiates {@code cls} by invoking one of its non-private constructors or non-private static
       * factory methods with the parameters automatically provided using dummy values.
       *
       * @return The instantiated instance, or {@code null} if the class has no non-private constructor
       *     or factory method to be constructed.
       */
      <T> @Nullable T instantiate(Class<T> cls)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheBuilderSpec.java

     * </ul>
     *
     * <p>{@code CacheBuilderSpec} does not support configuring {@code CacheBuilder} methods with
     * non-value parameters. These must be configured in code.
     *
     * <p>A new {@code CacheBuilder} can be instantiated from a {@code CacheBuilderSpec} using {@link
     * CacheBuilder#from(CacheBuilderSpec)} or {@link CacheBuilder#from(String)}.
     *
     * @author Adam Winer
     * @since 12.0
     */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/Config.java

    import java.util.StringTokenizer;
    
    import jcifs.smb1.util.LogStream;
    
    /**
     * This class uses a static {@link java.util.Properties} to act
     * as a cental repository for all jCIFS configuration properties. It cannot be
     * instantiated. Similar to <code>System</code> properties the namespace
     * is global therefore property names should be unique. Before use,
     * the <code>load</code> method should be called with the name of a
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

     * </ul>
     *
     * <p>{@code CacheBuilderSpec} does not support configuring {@code CacheBuilder} methods with
     * non-value parameters. These must be configured in code.
     *
     * <p>A new {@code CacheBuilder} can be instantiated from a {@code CacheBuilderSpec} using {@link
     * CacheBuilder#from(CacheBuilderSpec)} or {@link CacheBuilder#from(String)}.
     *
     * @author Adam Winer
     * @since 12.0
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

      }
    
      /**
       * Instantiates {@code cls} by invoking one of its non-private constructors or non-private static
       * factory methods with the parameters automatically provided using dummy values.
       *
       * @return The instantiated instance, or {@code null} if the class has no non-private constructor
       *     or factory method to be constructed.
       */
      <T> @Nullable T instantiate(Class<T> cls)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

            () -> tester.instantiate(FactoryMethodReturnsNullAndAnnotated.class));
      }
    
      public void testInstantiate_factoryMethodAcceptsNull() throws Exception {
        assertNull(tester.instantiate(FactoryMethodAcceptsNull.class).name);
      }
    
      public void testInstantiate_factoryMethodDoesNotAcceptNull() throws Exception {
        assertNotNull(tester.instantiate(FactoryMethodDoesNotAcceptNull.class).name);
      }
    
    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)
  9. guava-tests/test/com/google/common/net/InetAddressesTest.java

              InetAddresses.getCompatIPv4Address((Inet6Address) ip));
        }
      }
    
      public void testMappedIPv4Addresses() throws UnknownHostException {
        /*
         * Verify that it is not possible to instantiate an Inet6Address
         * from an "IPv4 mapped" IPv6 address.  Our String-based method can
         * at least identify them, however.
         */
        String mappedStr = "::ffff:192.168.0.1";
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

            findClassesToTest(loadClassesInPackage(), SERIALIZABLE_TEST_METHOD_NAMES)) {
          if (Serializable.class.isAssignableFrom(classToTest)) {
            try {
              Object instance = tester.instantiate(classToTest);
              if (instance != null) {
                if (isEqualsDefined(classToTest)) {
                  SerializableTester.reserializeAndAssert(instance);
                } else {
    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)
Back to top