Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Appendable (0.07 sec)

  1. guava/src/com/google/common/io/CharSource.java

       * Does not close {@code appendable} if it is {@code Closeable}.
       *
       * @return the number of characters copied
       * @throws IOException if an I/O error occurs while reading from this source or writing to {@code
       *     appendable}
       */
      @CanIgnoreReturnValue
      public long copyTo(Appendable appendable) throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

            return in.read(cbuf, off, Math.max(len - 1024, 0));
          }
        };
      }
    
      /** Wrap an appendable in an appendable to defeat any type specific optimizations. */
      private static Appendable wrapAsGenericAppendable(final Appendable a) {
        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharStreamsTest.java

            return in.read(cbuf, off, Math.max(len - 1024, 0));
          }
        };
      }
    
      /** Wrap an appendable in an appendable to defeat any type specific optimizations. */
      private static Appendable wrapAsGenericAppendable(final Appendable a) {
        return new Appendable() {
    
          @Override
          public Appendable append(CharSequence csq) throws IOException {
            a.append(csq);
            return this;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilder.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * Message builder that supports configurable styling.
     *
     * @since 4.0.0
     * @see MessageBuilderFactory
     */
    public interface MessageBuilder extends Appendable {
    
        /**
         * Append message content in trace style.
         * By default, bold magenta
         *
         * @param message the message to append
         * @return the current builder
         */
        @Nonnull
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Nov 02 09:29:52 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

     * with maven-shared-utils, while Maven has migrated to JLine (into which Jansi has been merged
     * since JLine 3.25.0).
     */
    @SuppressWarnings("unused")
    public class Ansi implements Appendable {
    
        private static final char FIRST_ESC_CHAR = 27;
        private static final char SECOND_ESC_CHAR = '[';
    
        /**
         * <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#Colors">ANSI 8 colors</a> for fluent API
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public <T extends Readable & Appendable> void testMultiBound() {
        assertAssignable(new TypeToken<List<T>>() {}, new TypeToken<List<? extends Readable>>() {});
        assertAssignable(new TypeToken<List<T>>() {}, new TypeToken<List<? extends Appendable>>() {});
      }
    
      public void testToGenericType() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public <T extends Readable & Appendable> void testMultiBound() {
        assertAssignable(new TypeToken<List<T>>() {}, new TypeToken<List<? extends Readable>>() {});
        assertAssignable(new TypeToken<List<T>>() {}, new TypeToken<List<? extends Appendable>>() {});
      }
    
      public void testToGenericType() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/dependencies/index.md

    ## First Steps
    
    Let's see a very simple example. It will be so simple that it is not very useful, for now.
    
    But this way we can focus on how the **Dependency Injection** system works.
    
    ### Create a dependency, or "dependable"
    
    Let's first focus on the dependency.
    
    It is just a function that can take all the same parameters that a *path operation function* can take:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[8:9] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:18:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. fastapi/param_functions.py

            **extra,
        )
    
    
    def Depends(  # noqa: N802
        dependency: Annotated[
            Optional[Callable[..., Any]],
            Doc(
                """
                A "dependable" callable (like a function).
    
                Don't call it directly, FastAPI will call it for you, just pass the object
                directly.
                """
            ),
        ] = None,
        *,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/background-tasks.md

    ## Dependency Injection
    
    Using `BackgroundTasks` also works with the dependency injection system, you can declare a parameter of type `BackgroundTasks` at multiple levels: in a *path operation function*, in a dependency (dependable), in a sub-dependency, etc.
    
    **FastAPI** knows what to do in each case and how to reuse the same object, so that all the background tasks are merged together and are run in the background afterwards:
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:22:48 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top