Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,227 for instanceOf (0.26 sec)

  1. src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java

            // Execute
            final SsoMessageException exception = new SsoMessageException(messageCode, message);
    
            // Verify that it's an instance of FessSystemException
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
        }
    
        public void test_stackTracePresence() {
            // Setup
            final String message = "Test stack trace";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

                        } else if (value instanceof TestUser) {
                            // Handle TestUser object
                            TestUser user = (TestUser) value;
                            result = result.replace("${" + key + ".name}", user.name);
                            result = result.replace("${" + key + ".age}", String.valueOf(user.age));
                        } else if (value instanceof Map) {
                            // Handle nested maps
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/DocListTest.java

        }
    
        public void test_inheritance() {
            DocList docList = new DocList();
    
            assertTrue(docList instanceof java.util.ArrayList);
            assertTrue(docList instanceof java.util.List);
            assertTrue(docList instanceof java.util.Collection);
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

      public void testGetRandomAccess() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 1);
        multimap.put("foo", 3);
        assertTrue(multimap.get("foo") instanceof RandomAccess);
        assertTrue(multimap.get("bar") instanceof RandomAccess);
      }
    
      /** Confirm that removeAll() returns a List implementing RandomAccess. */
      public void testRemoveAllRandomAccess() {
        Multimap<String, Integer> multimap = create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Predicates.java

       * example, {@code instanceOf(ArrayList.class)} will yield different results for the two equal
       * instances {@code Lists.newArrayList(1)} and {@code Arrays.asList(1)}.
       *
       * <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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/ScheduledJobExceptionTest.java

            // Test that ScheduledJobException is instance of FessSystemException
            ScheduledJobException exception = new ScheduledJobException("Test");
    
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        public void test_stackTracePresent() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/DoubleConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Double) {
                return (Double) o;
            } else if (o instanceof Number) {
                return Double.valueOf(((Number) o).doubleValue());
            } else if (o instanceof String) {
                return toDouble((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

         *
         * 1) An interface I extending Comparable<I> so that the created array is of
         * an interface type. 2) An instance of a class implementing that interface
         * so that we can pass non-null instances of the interface.
         *
         * (Currently it's safe to pass instances for which compareTo() always
         * returns 0, but if we had a SingletonImmutableSortedSet, this might no
         * longer be the case.)
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/MemoryUtil.java

            }
            if (obj instanceof String) {
                return ((String) obj).length() + 56L;
            }
            if (obj instanceof Number) {
                return 24L;
            }
            if (obj instanceof Date) {
                return 32L;
            }
            if (obj instanceof LocalDateTime) {
                return 80L;
            }
            if (obj instanceof ZonedDateTime) {
                return 2128L;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/ThumbnailGenerationExceptionTest.java

            // Test that ThumbnailGenerationException is an instance of FessSystemException
            ThumbnailGenerationException exception = new ThumbnailGenerationException("Test");
    
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.2K bytes
    - Viewed (0)
Back to top