- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 74 for lambda (0.11 seconds)
-
android/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())); * } *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/SuccessorsFunction.java
* someGraphAlgorithm(startNode, MyNode::getChildren); * } * * <p>If you have some other mechanism for returning the successors of a node, or one that doesn't * return an {@code Iterable<? extends N>}, then you can use a lambda to perform a more general * transformation: * * {@snippet : * someGraphAlgorithm(startNode, node -> ImmutableList.of(node.leftChild(), node.rightChild())); * } *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 4.2K bytes - Click Count (0) -
tests/test_arbitrary_types.py
def __init__(self): self.data = [1.0, 2.0, 3.0] FakeNumpyArrayPydantic = Annotated[ FakeNumpyArray, WithJsonSchema(TypeAdapter(list[float]).json_schema()), PlainSerializer(lambda v: v.data), ] class MyModel(BaseModel): model_config = ConfigDict(arbitrary_types_allowed=True) custom_field: FakeNumpyArrayPydantic app = FastAPI() @app.get("/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 3.8K bytes - Click Count (0) -
fastapi/encoders.py
ENCODERS_BY_TYPE: dict[type[Any], Callable[[Any], Any]] = { bytes: lambda o: o.decode(), Color: str, # ty: ignore[deprecated] datetime.date: isoformat, datetime.datetime: isoformat, datetime.time: isoformat, datetime.timedelta: lambda td: td.total_seconds(), Decimal: decimal_encoder, Enum: lambda o: o.value, frozenset: list, deque: list, GeneratorType: list,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 10.9K bytes - Click Count (0) -
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")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 9.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java
/** * Saves informational messages to the session. * The messages will be displayed to the user on the next page load. * * @param validationMessagesLambda a lambda function to configure the messages */ protected void saveInfo(final VaMessenger<FessMessages> validationMessagesLambda) { final FessMessages messages = createMessages();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 15K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheLoader.java
* } * }; * LoadingCache<Key, Graph> cache = CacheBuilder.newBuilder().build(loader); * } * * <p>Since this example doesn't support reloading or bulk loading, if you're able to use lambda * expressions it can be specified even more easily: * * {@snippet : * CacheLoader<Key, Graph> loader = CacheLoader.from(key -> createExpensiveGraph(key)); * } * * @author Charles Fry * @since 10.0 */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 9.7K bytes - Click Count (0) -
build-logic-commons/code-quality-rules/src/main/resources/checkstyle/checkstyle.xml
</module> <!-- Design --> <!-- <module name="InterfaceIsType"/> -->Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Dec 11 10:24:25 GMT 2025 - 6.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt
* } * ``` */ fun interface Interceptor { @Throws(IOException::class) fun intercept(chain: Chain): Response companion object { /** * Constructs an interceptor for a lambda. This compact syntax is most useful for inline * interceptors. * * ```kotlin * val interceptor = Interceptor { chain: Interceptor.Chain -> * chain.proceed(chain.request()) * }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 8.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/JobExecutorTest.java
}; assertFalse(flag.get()); listener.onShutdown(); assertTrue(flag.get()); } @Test public void test_shutdownListener_lambda() { // Test lambda implementation of ShutdownListener final AtomicBoolean flag = new AtomicBoolean(false); ShutdownListener listener = () -> flag.set(true); assertFalse(flag.get()); listener.onShutdown();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 9.4K bytes - Click Count (0)