Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for lambda1 (0.05 sec)

  1. guava/src/com/google/common/graph/PredecessorsFunction.java

     * someGraphAlgorithm(startNode, MyNode::getParents);
     * }
     *
     * <p>If you have some other mechanism for returning the predecessors of a node, or one that doesn't
     * return a {@code Iterable<? extends N>}, then you can use a lambda to perform a more general
     * transformation:
     *
     * {@snippet :
     * someGraphAlgorithm(startNode, node -> ImmutableList.of(node.mother(), node.father()));
     * }
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 4K bytes
    - Viewed (0)
  2. tests/test_jsonable_encoder.py

        encoded_instance = jsonable_encoder(
            instance, custom_encoder={safe_datetime: lambda o: o.strftime("%H:%M:%S")}
        )
        assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S")
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={datetime: lambda o: o.strftime("%H:%M:%S")}
        )
        assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SmbNegotiationRequestTest.java

        }
    
        @Test
        @DisplayName("Test lambda implementation (if applicable)")
        void testLambdaImplementation() {
            // Given - Using a functional interface pattern
            SmbNegotiationRequest lambdaRequest = () -> true;
    
            // When
            boolean result = lambdaRequest.isSigningEnforced();
    
            // Then
            assertTrue(result, "Lambda implementation should return true");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/TearDownAccepter.java

    import org.jspecify.annotations.NullMarked;
    
    /**
     * Any object which can accept registrations of {@link TearDown} instances.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @DoNotMock("Implement with a lambda")
    @GwtCompatible
    @NullMarked
    public interface TearDownAccepter {
      /**
       * Registers a TearDown implementor which will be run after the test proper.
       *
       * <p>In JUnit4 language, that means as an {@code @After}.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/TearDownAccepter.java

    import org.jspecify.annotations.NullMarked;
    
    /**
     * Any object which can accept registrations of {@link TearDown} instances.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @DoNotMock("Implement with a lambda")
    @GwtCompatible
    @NullMarked
    public interface TearDownAccepter {
      /**
       * Registers a TearDown implementor which will be run after the test proper.
       *
       * <p>In JUnit4 language, that means as an {@code @After}.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. tests/test_response_model_default_factory.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    app = FastAPI()
    
    
    class ResponseModel(BaseModel):
        code: int = 200
        message: str = Field(default_factory=lambda: "Successful operation.")
    
    
    @app.get(
        "/response_model_has_default_factory_return_dict",
        response_model=ResponseModel,
    )
    async def response_model_has_default_factory_return_dict():
        return {"code": 200}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 18:51:40 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmMain/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.list

    s3-object-lambda.ap-southeast-3.amazonaws.com
    s3-object-lambda.ap-southeast-4.amazonaws.com
    s3-object-lambda.ap-southeast-5.amazonaws.com
    s3-object-lambda.ca-central-1.amazonaws.com
    s3-object-lambda.ca-west-1.amazonaws.com
    s3-object-lambda.cn-north-1.amazonaws.com.cn
    s3-object-lambda.cn-northwest-1.amazonaws.com.cn
    s3-object-lambda.eu-central-1.amazonaws.com
    s3-object-lambda.eu-central-2.amazonaws.com
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 129.6K bytes
    - Viewed (3)
  8. android/guava/src/com/google/common/hash/Funnel.java

     *         .putUnencodedChars(person.getLastName())
     *         .putInt(person.getAge());
     *   }
     * }
     * }
     *
     * @author Dimitris Andreou
     * @since 11.0
     */
    @Beta
    @DoNotMock("Implement with a lambda")
    public interface Funnel<T extends @Nullable Object> extends Serializable {
    
      /**
       * Sends a stream of data from the {@code from} object into the sink {@code into}. There is no
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbFilenameFilterTest.java

    import org.junit.jupiter.api.Test;
    import org.mockito.Mockito;
    
    /**
     * Tests for {@link SmbFilenameFilter}. Since the interface only defines
     * a single method, the tests simply ensure that the lambda expression
     * correctly implements the method and that any exception is propagated.
     */
    class SmbFilenameFilterTest {
    
        @Test
        void acceptReturnsTrueWhenNameMatches() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Functions.java

        }
    
        @Override
        public String toString() {
          return "Functions.toStringFunction()";
        }
      }
    
      /**
       * Returns the identity function.
       *
       * <p><b>Discouraged:</b> Prefer using a lambda like {@code v -> v}, which is shorter and often
       * more readable.
       */
      // implementation is "fully variant"; E has become a "pass-through" type
      @SuppressWarnings("unchecked")
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top