Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,601 for Instance (0.04 sec)

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

        for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
          X instance = newFromConstructor(constructor, cause);
          if (instance != null) {
            if (instance.getCause() == null) {
              instance.initCause(cause);
            }
            return instance;
          }
        }
        throw new IllegalArgumentException(
            "No appropriate constructor for exception of type "
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/escape/super/com/google/common/escape/Platform.java

      private static final char[] CHAR_BUFFER = new char[1024];
    
      static char[] charBufferFromThreadLocal() {
        // ThreadLocal is not available to GWT, so we always reuse the same
        // instance.  It is always safe to return the same instance because
        // javascript is single-threaded, and only used by blocks that doesn't
        // involve async callbacks.
        return CHAR_BUFFER;
      }
    
      private Platform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            // Arrange: create an implementation instance
            SmbRenewableCredentials impl = supplier.get();
    
            // Act: call renew
            CredentialsInternal renewed = impl.renew();
    
            // Assert: verify behavior based on scenario
            if (expectSame) {
                assertSame(impl, renewed, "renew() should return the same instance");
            } else if (expectNew) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorFactory.java

            this.extractorMap = extractorMap;
        }
    
        /**
         * Creates a new ExtractorBuilder instance.
         *
         * @param in      The input stream to be processed by the extractor.
         * @param params  The parameters to be used by the extractor.
         * @return A new ExtractorBuilder instance.
         */
        public ExtractorBuilder builder(final InputStream in, final Map<String, String> params) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  5. api/maven-api-di/src/main/java/org/apache/maven/api/di/Scope.java

     * system. Custom scope annotations should be annotated with {@code @Scope}.
     * <p>
     * Built-in scopes include:
     * <ul>
     *   <li>{@link Singleton} - One instance per container</li>
     *   <li>{@link SessionScoped} - One instance per Maven session</li>
     *   <li>{@link MojoExecutionScoped} - One instance per plugin execution</li>
     * </ul>
     *
     * @see Singleton
     * @see SessionScoped
     * @see MojoExecutionScoped
     * @since 4.0.0
     */
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Jan 30 23:28:59 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/dependencies/classes-as-dependencies.md

    entonces es un "callable".
    
    ## Clases como dependencias
    
    Puedes notar que para crear una instance de una clase en Python, utilizas esa misma sintaxis.
    
    Por ejemplo:
    
    ```Python
    class Cat:
        def __init__(self, name: str):
            self.name = name
    
    
    fluffy = Cat(name="Mr Fluffy")
    ```
    
    En este caso, `fluffy` es una instance de la clase `Cat`.
    
    Y para crear `fluffy`, estás "llamando" a `Cat`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactory.java

        /**
         * Creates a new object instance from the crawler container.
         * @return A new instance of the component specified by componentName
         * @throws Exception if the component cannot be created
         */
        @Override
        public T create() throws Exception {
            return (T) crawlerContainer.getComponent(componentName);
        }
    
        /**
         * Wraps an object instance into a pooled object.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

     * without throwing exceptions.
     */
    @ExtendWith(MockitoExtension.class)
    class MsrpcSamrConnect2Test {
    
        // Helper method to create a minimal SamrPolicyHandle instance.
        private static SamrPolicyHandle createMockPolicyHandle() {
            return mock(SamrPolicyHandle.class);
        }
    
        @Nested
        @DisplayName("Constructor parameter handling")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/EqualsTester.java

                !item.equals(item.toString()));
          }
        }
      }
    
      /**
       * Class used to test whether equals() correctly handles an instance of an incompatible class.
       * Since it is a private inner class, the invoker can never pass in an instance to the tester
       */
      private enum NotAnInstance {
        EQUAL_TO_NOTHING;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

        }
    
        @Test
        void close_shouldClosePolicySuccessfully() throws IOException {
            // Arrange
            // First, successfully create an LsaPolicyHandle instance
            doAnswer(invocation -> {
                MsrpcLsarOpenPolicy2 rpc = invocation.getArgument(0);
                rpc.retval = 0;
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top