- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 152 for asSubclass (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.jspecify.annotations.NullUnmarked; /** * Tester for typical subclass of {@link ForwardingObject} by using Mockito. * * @author Ben Yu */ @NullUnmarked @GwtIncompatible @J2ktIncompatible final class ForwardingObjectTester { private static final Method DELEGATE_METHOD;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/spnego/SpnegoTokenTest.java
import java.io.IOException; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; /** * Tests for SpnegoToken. * Uses a minimal concrete subclass to exercise abstract methods. */ class SpnegoTokenTest { /** * Minimal concrete implementation for testing. * - parse: sets mechanismToken, throws on nullCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.6K bytes - Click Count (0) -
build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/test/TestClasspathUtils.java
} private static void generateJdkJarHellCheck(File projectRoot, Implementation mainImplementation) { DynamicType.Unloaded<?> dynamicType = new ByteBuddy() .subclass(Object.class) .name("org.elasticsearch.jdk.JdkJarHellCheck") .defineMethod("main", void.class, Visibility.PUBLIC, Ownership.STATIC) .withParameters(String[].class)Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Jun 07 15:14:44 GMT 2021 - 2.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/ForwardingSortedMap.java
* ForwardingSortedMap}. In many cases, you may wish to override {@link * ForwardingSortedMap#keySet} to forward to this implementation or a subclass thereof. * * @since 15.0 */ protected class StandardKeySet extends Maps.SortedKeySet<K, V> { /** Constructor for use by subclasses. */ public StandardKeySet() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 16:28:01 GMT 2025 - 5.7K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java
// The actual logic is tested in AbstractUpgradeGoalTest // Here we just verify that Apply is properly configured as a subclass assertInstanceOf(AbstractUpgradeGoal.class, applyGoal, "Apply should extend AbstractUpgradeGoal"); assertTrue(applyGoal.shouldSaveModifications(), "Apply should save modifications unlike Check goal");Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 10:39:17 GMT 2025 - 4.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
* AbstractMapBasedMultimap} calls {@link #createCollection()} to create the collection of values * for that key. The subclass should not call {@link #createCollection()} directly, and a new * instance should be created every time the method is called. * * <p>For example, the subclass could pass a {@link java.util.TreeMap} during construction, andCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 48.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
* thought of as overkill; however, it's difficult to determine which proper subset of this massive * set would be sufficient to expose any possible bug. Brute force is simpler. * * <p>To use this class the concrete subclass must implement the {@link * IteratorTester#newTargetIterator()} method. This is because it's impossible to test an Iterator * without changing its state, so the tester needs a steady supply of fresh Iterators. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 4.3K bytes - Click Count (0) -
fastapi/_compat/shared.py
def lenient_issubclass( cls: Any, class_or_tuple: type[_T] | tuple[type[_T], ...] | None ) -> TypeGuard[type[_T]]: try: return isinstance(cls, type) and issubclass(cls, class_or_tuple) # type: ignore[arg-type] except TypeError: # pragma: no cover if isinstance(cls, WithArgsTypes): return False raise # pragma: no cover
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 6.9K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy
} private static String methodSignaturesMatch(CtMethod methodInSubClass, CtMethod method) { return methodParametersFromSignature(methodInSubClass) == methodParametersFromSignature(method) // Subclass can override method return type && methodInSubClass.returnType.subtypeOf(method.returnType) } /**Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/MapIteratorCache.java
} @Override public boolean contains(@Nullable Object key) { return containsKey(key); } }; } // Internal methods (package-visible, but treat as only subclass-visible) @Nullable V getIfCached(@Nullable Object key) { Entry<K, V> entry = cacheEntry; // store local reference for thread-safetyCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.6K bytes - Click Count (0)