- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 1,930 for isinstance (0.15 seconds)
-
scripts/people.py
} } } } } rateLimit { cost remaining resetAt } } """ LowerStr = Annotated[ str, BeforeValidator(lambda v: v.lower() if isinstance(v, str) else v) ] class Author(BaseModel): login: str avatarUrl: str | None = None url: str | None = None class CommentsNode(BaseModel): createdAt: datetimeCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Mar 23 13:51:24 GMT 2026 - 15K bytes - Click Count (0) -
guava/src/com/google/common/base/Predicates.java
* * <p><b>Discouraged:</b> Prefer using {@code clazz::isInstance} or {@code x -> x instanceof * Clazz}, but note that lambdas do not have human-readable {@link #toString()} representations * and are not serializable. */ @GwtIncompatible // Class.isInstance public static <T extends @Nullable Object> Predicate<T> instanceOf(Class<?> clazz) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.6K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Predicates.java
* * <p><b>Discouraged:</b> Prefer using {@code clazz::isInstance} or {@code x -> x instanceof * Clazz}, but note that lambdas do not have human-readable {@link #toString()} representations * and are not serializable. */ @GwtIncompatible // Class.isInstance public static <T extends @Nullable Object> Predicate<T> instanceOf(Class<?> clazz) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
private void persistResumptionData(MavenExecutionResult result, MavenSession session) { boolean hasLifecycleExecutionExceptions = result.getExceptions().stream().anyMatch(LifecycleExecutionException.class::isInstance); if (hasLifecycleExecutionExceptions) { MavenProject rootProject = session.getAllProjects().stream() .filter(MavenProject::isExecutionRoot) .findFirst()
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Dec 29 10:43:38 GMT 2025 - 28.8K bytes - Click Count (1) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
assertTrue(SessionSetupHandler.class.isAssignableFrom(impl.getClass()), "Type should be assignable"); } @Test @DisplayName("Edge: null is not an instance of the interface") void testNullIsNotInstance() { // Assert assertFalse(SessionSetupHandler.class.isInstance(null)); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/CoreUtils.java
class CoreUtils { public static <T> T cast(Class<T> clazz, Object o, String name) { if (!clazz.isInstance(o)) { if (o == null) { throw new IllegalArgumentException(name + " is null"); } throw new IllegalArgumentException(name + " is not an instance of " + clazz.getName()); } return clazz.cast(o); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Mar 24 22:23:23 GMT 2025 - 1.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
final Type t3 = m3.getGenericReturnType(); assertThat(GenericsUtil.isTypeOf(t3, Map.class), is(true)); assertThat(WildcardType.class.isInstance(GenericsUtil.getKeyTypeOfMap(t3)), is(true)); assertThat(WildcardType.class.isInstance(GenericsUtil.getValueTypeOfMap(t3)), is(true)); } /** * @throws Exception */ public void testGetTypeVariableMap() throws Exception {
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 11.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Platform.java
@GwtCompatible final class Platform { static boolean isInstanceOfThrowableClass( @Nullable Throwable t, Class<? extends Throwable> expectedClass) { return expectedClass.isInstance(t); } static void restoreInterruptIfIsInterruptedException(Throwable t) { checkNotNull(t); // to satisfy NullPointerTester if (t instanceof InterruptedException) { currentThread().interrupt();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.1K bytes - Click Count (0) -
guava/src/com/google/common/annotations/GwtIncompatible.java
* dependence on a type/method which GWT doesn't support, it is sufficient to simply reference the * unsupported type/method. E.g. "Class.isInstance". * * <p>As of Guava 20.0, this value is optional. We encourage authors who wish to describe why an * API is {@code @GwtIncompatible} to instead leave an implementation comment. */ String value() default "";
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 19 16:29:08 GMT 2017 - 1.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RecordedResponse.kt
} fun assertFailure(vararg allowedExceptionTypes: Class<*>) = apply { var found = false for (expectedClass in allowedExceptionTypes) { if (expectedClass.isInstance(failure)) { found = true break } } assertThat( found, "Expected exception type among ${allowedExceptionTypes.contentToString()}, got $failure",
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.3K bytes - Click Count (0)