Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 1,610 for instanceof (0.06 seconds)

  1. src/main/java/org/codelibs/fess/util/DocumentUtil.java

            }
            if (clazz.isAssignableFrom(Date.class)) {
                if (value instanceof Date) {
                    return (T) value;
                }
                return (T) FessFunctions.parseDate(value.toString());
            }
            if (clazz.isAssignableFrom(Long.class)) {
                if (value instanceof Long) {
                    return (T) value;
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof ConstructorParameterSingleValue;
        }
    
        @Override
        public int hashCode() {
          return 1;
        }
    
        public static class Singleton {
          public static final Singleton INSTANCE = new Singleton();
    
          private Singleton() {}
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/util/RenderDataUtil.java

                return;
            }
    
            if (value instanceof Entity) {
                data.register(key, BeanUtil.copyBeanToNewMap(value));
            } else {
                if (value instanceof final Collection<?> coll && !coll.isEmpty()) {
                    // care performance for List that the most frequent pattern
                    final Object first = coll instanceof List<?> ? ((List<?>) coll).get(0) : coll.iterator().next();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      public V resultNow() {
        Object localValue = value();
        if (localValue == null | localValue instanceof DelegatingToFuture) {
          throw new IllegalStateException("Task has not completed");
        }
        if (localValue instanceof Failure) {
          throw new IllegalStateException("Task completed with exception");
        }
        if (localValue instanceof Cancellation) {
          throw new IllegalStateException("Task was cancelled");
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/reflect/TypeVisitor.java

          boolean succeeded = false;
          try {
            if (type instanceof TypeVariable) {
              visitTypeVariable((TypeVariable<?>) type);
            } else if (type instanceof WildcardType) {
              visitWildcardType((WildcardType) type);
            } else if (type instanceof ParameterizedType) {
              visitParameterizedType((ParameterizedType) type);
            } else if (type instanceof Class) {
              visitClass((Class<?>) type);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/query/BooleanQueryCommandTest.java

            QueryContext context = new QueryContext("test", false);
            QueryBuilder result = booleanQueryCommand.execute(context, booleanQuery, 1.0f);
    
            assertNotNull(result);
            assertTrue(result instanceof BoolQueryBuilder);
    
            BoolQueryBuilder boolResult = (BoolQueryBuilder) result;
            assertTrue(boolResult.hasClauses());
        }
    
        // Test execute method with non-BooleanQuery (should throw exception)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.4K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

          @Override
          public boolean equals(@Nullable Object that) {
            if (that instanceof Pred) {
              return this.node.equals(((Pred<?>) that).node);
            } else {
              return false;
            }
          }
    
          @Override
          public int hashCode() {
            // Adding the class hashCode to avoid a clash with Succ instances.
            return Pred.class.hashCode() + node.hashCode();
          }
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/base/MoreObjects.java

          // Put types estimated to be the most frequent first.
          if (value instanceof CharSequence) {
            return ((CharSequence) value).length() == 0;
          } else if (value instanceof Collection) {
            return ((Collection<?>) value).isEmpty();
          } else if (value instanceof Map) {
            return ((Map<?, ?>) value).isEmpty();
          } else if (value instanceof java.util.Optional) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 05 17:38:41 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java

            assertTrue(exception instanceof UnsupportedSearchException);
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_stackTrace() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

            LdapConfigurationException exception = new LdapConfigurationException("test");
    
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_stackTrace() {
            // Test that stack trace is generated properly
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.8K bytes
    - Click Count (0)
Back to Top