- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 72 for asSubclass (0.47 sec)
-
android/guava/src/com/google/common/base/Converter.java
* </ul> * * <h3>Example</h3> * * {@snippet : * return Converter.from( * Integer::toHexString, * s -> parseUnsignedInt(s, 16)); * } * * <p>An alternative using a subclass: * * {@snippet : * return new Converter<Integer, String>() { * @Override * protected String doForward(Integer i) { * return Integer.toHexString(i); * } * * @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jun 18 21:43:06 UTC 2025 - 22.8K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Types.java
private static ClassOwnership detectJvmBehavior() { class LocalClass<T> {} Class<?> subclass = new LocalClass<String>() {}.getClass(); // requireNonNull is safe because we're examining a type that's known to have a superclass. ParameterizedType parameterizedType = requireNonNull((ParameterizedType) subclass.getGenericSuperclass()); for (ClassOwnership behavior : ClassOwnership.values()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
* elements and to build again. * * @since 2.0 */ public static class Builder<E> extends ImmutableCollection.Builder<E> { /* * `impl` is null only for instances of the subclass, ImmutableSortedSet.Builder. That subclass * overrides all the methods that access it here. Thus, all the methods here can safely assume * that this field is non-null. */ private @Nullable SetBuilderImpl<E> impl;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeTraverser.java
* This is useful if the function instance already exists, or so that you can supply a lambda * expressions. If those circumstances don't apply, you probably don't need to use this; subclass * {@code TreeTraverser} and implement its {@link #children} method directly. * * @since 20.0 * @deprecated Use {@link com.google.common.graph.Traverser#forTree} instead. If you are using a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 8.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingNavigableSet.java
* of {@link NavigableSet}, notably including {@link NavigableSet#descendingIterator}. * * <p>In many cases, you may wish to override {@link ForwardingNavigableSet#descendingSet} to * forward to this implementation or a subclass thereof. * * @since 12.0 */ protected class StandardDescendingSet extends Sets.DescendingSet<E> { /** Constructor for use by subclasses. */ public StandardDescendingSet() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.8K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheLoader.java
} /** * Returns a cache loader based on an <i>existing</i> supplier instance. Note that there's no need * to create a <i>new</i> supplier just to pass it in here; just subclass {@code CacheLoader} and * implement {@link #load load} instead. * * <p>The returned object is serializable if {@code supplier} is serializable. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java
assertThat(future.isDone()).isFalse(); assertThat(future.set(1)).isTrue(); assertSuccessful(future, 1); } /** Concrete subclass for testing. */ private static class TestedFuture<V> extends AbstractFuture<V> { private static <V> TestedFuture<V> create() { return new TestedFuture<V>(); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.4K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CharSource.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 25.7K bytes - Viewed (0) -
guava/src/com/google/common/io/CharSource.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 25.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
if (result) { executionList.execute(); } return result; } /** * Following the contract of {@link AbstractQueuedSynchronizer} we create a private subclass to * hold the synchronizer. This synchronizer is used to implement the blocking and waiting calls * as well as to handle state changes in a thread-safe manner. The current state of the future
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 13.7K bytes - Viewed (0)