Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 1,022 for isInstance (0.06 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginParameterExpressionEvaluator.java

                    }
                }
            }
    
            return value;
        }
    
        private static boolean isTypeCompatible(Class<?> type, Object value) {
            if (type.isInstance(value)) {
                return true;
            }
            // likely Boolean -> boolean, Short -> int etc. conversions, it's not the problem case we try to avoid
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 24 17:29:44 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

            when {
              isOptional && value == optionalValue -> {
                // Write nothing.
              }
    
              else -> {
                for ((type, adapter) in choices) {
                  if (type.isInstance(value) || (value == null && type == Unit::class)) {
                    (adapter as DerAdapter<Any?>).toDer(writer, value)
                    return
                  }
                }
              }
            }
          }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Click Count (0)
  3. impl/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java

                assertEquals(1, ((Collection) result.getProblems()).size());
                result.getProblems().forEach(p -> {
                    assertTrue(expectedException.isInstance(p.getException()));
                    assertTrue(p.getException().getMessage().contains(partOfMessage));
                });
            }
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 20:39:03 GMT 2025
    - 28K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        }
    
        @Override
        public final void run() {
          try {
            realRun();
            threadShouldThrow(exceptionClass.getSimpleName());
          } catch (Throwable t) {
            if (!exceptionClass.isInstance(t)) threadUnexpectedException(t);
          }
        }
      }
    
      public abstract class ThreadShouldThrow extends Thread {
        protected abstract void realRun() throws Throwable;
    
        final Class<?> exceptionClass;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  5. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon May 05 16:58:52 GMT 2025
    - 28.7K bytes
    - Click Count (1)
  6. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

                            for (Field f : k.getDeclaredFields()) {
                              f.setAccessible(true);
                              Object x = f.get(null);
                              if (k.isInstance(x)) {
                                return k.cast(x);
                              }
                            }
                            throw new NoSuchFieldError("the Unsafe");
                          });
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 34.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

                            for (Field f : k.getDeclaredFields()) {
                              f.setAccessible(true);
                              Object x = f.get(null);
                              if (k.isInstance(x)) {
                                return k.cast(x);
                              }
                            }
                            throw new NoSuchFieldError("the Unsafe");
                          });
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 33.2K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Iterators.java

       * desiredType}.
       */
      @SuppressWarnings("unchecked") // can cast to <T> because non-Ts are removed
      @GwtIncompatible // Class.isInstance
      public static <T> UnmodifiableIterator<T> filter(Iterator<?> unfiltered, Class<T> desiredType) {
        return (UnmodifiableIterator<T>) filter(unfiltered, instanceOf(desiredType));
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  9. RELEASE.md

    * <NOTES SHOULD BE GROUPED PER AREA>
    
    * `tf.data`
        * Adds `NoneTensorSpec` to the public API so that `None`s in `element_spec`
          can be identified via `isinstance(..., tf.NoneTensorSpec)`.
    
    ## Thanks to our Contributors
    
    This release contains contributions from many people at Google, as well as:
    
    <INSERT>, <NAME>, <HERE>, <USING>, <GITHUB>, <HANDLE>
    
    # Release 2.20.0
    
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Tue Oct 28 22:27:41 GMT 2025
    - 740.4K bytes
    - Click Count (3)
  10. docs/en/docs/advanced/advanced-dependencies.md

    But we want to be able to parameterize that fixed content.
    
    ## A "callable" instance { #a-callable-instance }
    
    In Python there's a way to make an instance of a class a "callable".
    
    Not the class itself (which is already a callable), but an instance of that class.
    
    To do that, we declare a method `__call__`:
    
    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[12] *}
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Nov 13 07:37:15 GMT 2025
    - 9.1K bytes
    - Click Count (0)
Back to Top