Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,030 for isInstance (0.09 sec)

  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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. 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 {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/StopwordsService.java

         */
        public OptionalEntity<StopwordsFile> getStopwordsFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(StopwordsFile.class::isInstance)
                    .map(file -> OptionalEntity.of((StopwordsFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
         * Retrieves a specific stopword item by its ID.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/SynonymService.java

         */
        public OptionalEntity<SynonymFile> getSynonymFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(SynonymFile.class::isInstance)
                    .map(file -> OptionalEntity.of((SynonymFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
         * Retrieves a specific synonym item by its ID.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

       */
      fun <T : ConnectionEvent> removeUpToEvent(eventClass: Class<T>): T {
        val fullEventSequence = eventSequence.toList()
        try {
          while (true) {
            val event = takeEvent()
            if (eventClass.isInstance(event)) {
              return eventClass.cast(event)
            }
          }
        } catch (e: NoSuchElementException) {
          throw AssertionError("full event sequence: $fullEventSequence", e)
        }
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  6. 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();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. 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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/KuromojiService.java

         */
        public OptionalEntity<KuromojiFile> getKuromojiFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(KuromojiFile.class::isInstance)
                    .map(file -> OptionalEntity.of((KuromojiFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
         * Get a Kuromoji item.
         *
         * @param dictId The dictionary ID.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/ProtwordsService.java

         */
        public OptionalEntity<ProtwordsFile> getProtwordsFile(final String dictId) {
            return dictionaryManager.getDictionaryFile(dictId)
                    .filter(ProtwordsFile.class::isInstance)
                    .map(file -> OptionalEntity.of((ProtwordsFile) file))
                    .orElse(OptionalEntity.empty());
        }
    
        /**
         * Gets a specific protected words item by ID.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FluentIterable.java

       * This does perform a little more work than necessary, so another option is to insert an
       * unchecked cast at some later point:
       *
       * {@snippet :
       * @SuppressWarnings("unchecked") // safe because of ::isInstance check
       * ImmutableList<NewType> result =
       *     (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());
       * }
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
Back to top