Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,126 for isInstance (0.43 sec)

  1. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

                    Class<Unsafe> k = Unsafe.class;
                    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");
                  }
                });
          } catch (PrivilegedActionException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  2. 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;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  3. 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
                  }
                }
              }
            }
          }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/Striped64.java

                  Class<Unsafe> k = Unsafe.class;
                  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");
                }
              });
        } catch (PrivilegedActionException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. 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;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  6. 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()
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  7. android/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));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  8. RELEASE.md

    *   `tf.compat.v1.Session`
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
  9. fess-crawler-lasta/src/main/resources/crawler.xml

    	<component name="crawler" class="org.codelibs.fess.crawler.Crawler" instance="prototype" >
    	</component>
    
    	<!-- Crawler Thread -->
    	<component name="crawlerThread" class="org.codelibs.fess.crawler.CrawlerThread" instance="prototype" >
    	</component>
    
    	<!-- Entity -->
    	<component name="accessResult" class="org.codelibs.fess.crawler.entity.AccessResultImpl" instance="prototype" >
    	</component>
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Tue Nov 28 13:40:25 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/advanced-dependencies.md

    ## Parameterize the instance
    
    And now, we can use `__init__` to declare the parameters of the instance that we can use to "parameterize" the dependency:
    
    {* ../../docs_src/dependencies/tutorial011_an_py39.py hl[9] *}
    
    In this case, **FastAPI** won't ever touch or care about `__init__`, we will use it directly in our code.
    
    ## Create an instance
    
    We could create an instance of this class with:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:10:15 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top