- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for memoize (0.05 sec)
-
guava-tests/test/com/google/common/base/SuppliersTest.java
CountingSupplier countingSupplier = new CountingSupplier(); Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); assertThat(memoizedSupplier.toString()).isEqualTo("Suppliers.memoize(CountingSupplier)"); checkMemoize(countingSupplier, memoizedSupplier); // Calls to the original memoized supplier shouldn't affect its copy. Object unused = memoizedSupplier.get(); assertThat(memoizedSupplier.toString())
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 17.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
CountingSupplier countingSupplier = new CountingSupplier(); Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); assertThat(memoizedSupplier.toString()).isEqualTo("Suppliers.memoize(CountingSupplier)"); checkMemoize(countingSupplier, memoizedSupplier); // Calls to the original memoized supplier shouldn't affect its copy. Object unused = memoizedSupplier.get(); assertThat(memoizedSupplier.toString())
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 17.9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/extensions/ExtensionConfigurationModule.java
if (configuration == null) { configuration = XmlNode.newInstance("configuration"); } UnaryOperator<String> cb = Interpolator.memoize(callback); UnaryOperator<String> it = s -> interpolator.interpolate(s, cb); configuration = new ExtensionInterpolator(it).transform(configuration); binder.bind(XmlNode.class)
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Mar 25 09:45:07 UTC 2025 - 2.9K bytes - Viewed (0) -
guava/src/com/google/common/base/Suppliers.java
* delegating calls until it returns valid data. * * <p>If {@code delegate} is an instance created by an earlier call to {@code memoize}, it is * returned directly. */ public static <T extends @Nullable Object> Supplier<T> memoize(Supplier<T> delegate) { if (delegate instanceof NonSerializableMemoizingSupplier || delegate instanceof MemoizingSupplier) { return delegate; }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 16.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java
return chain(List.of(functions)); } /** * Memoizes a given function that takes a String input and produces a String output. * This method creates a new function that caches the results of the original function, * improving performance for repeated calls with the same input. * * @param callback The original function to be memoized. It takes a String as input and returns a String.
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Jan 13 16:14:35 UTC 2025 - 6.9K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/ExtensionConfigurationModule.java
if (configuration == null) { configuration = XmlNode.newInstance("configuration"); } UnaryOperator<String> cb = Interpolator.memoize(callback); UnaryOperator<String> it = s -> interpolator.interpolate(s, cb); configuration = new ExtensionInterpolator(it).transform(configuration); binder.bind(XmlNode.class)
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Mar 25 09:45:07 UTC 2025 - 2.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractService.java
break; case TERMINATED: case FAILED: throw new AssertionError(); } } private void enqueueFailedEvent(State from, Throwable cause) { // can't memoize this one due to the exception listeners.enqueue( new ListenerCallQueue.Event<Listener>() { @Override public void call(Listener listener) { listener.failed(from, cause);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
break; case TERMINATED: case FAILED: throw new AssertionError(); } } private void enqueueFailedEvent(State from, Throwable cause) { // can't memoize this one due to the exception listeners.enqueue( new ListenerCallQueue.Event<Listener>() { @Override public void call(Listener listener) { listener.failed(from, cause);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.3K bytes - Viewed (0) -
docs/fr/llm-prompt.md
* «the `Response`»: «`Response`» (keep as code identifier) * «deployment»: «déploiement» * «to upgrade»: «mettre à niveau» * «deprecated»: «déprécié» * «to deprecate»: «déprécier» * «cheat sheet»: «aide-mémoire»
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 10:41:43 UTC 2025 - 4.1K bytes - Viewed (0) -
docs/en/docs/tutorial/response-status-code.md
Let's see the previous example again: {* ../../docs_src/response_status_code/tutorial001_py39.py hl[6] *} `201` is the status code for "Created". But you don't have to memorize what each of these codes mean. You can use the convenience variables from `fastapi.status`. {* ../../docs_src/response_status_code/tutorial002_py39.py hl[1,6] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4K bytes - Viewed (0)