Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 931 - 940 of 2,123 for instanceof (0.15 seconds)

  1. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *       is used to construct the sample instances. In case of tie, the candidate constructors or
       *       factories are tried one after another until one can be used to construct sample
       *       instances.
       *   <li>For the constructor or static factory method used to construct instances, it's checked
       *       that when equal parameters are passed, the result instance should also be equal; and vice
       *       versa.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/filter/WebApiFilterTest.java

            // Setup WebApiManagerFactory
            WebApiManagerFactory factory = new WebApiManagerFactory() {
                @Override
                public WebApiManager get(HttpServletRequest req) {
                    assertTrue(req instanceof HttpServletRequest);
                    return null;
                }
            };
            ComponentUtil.register(factory, "webApiManagerFactory");
    
            // Execute
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.5K bytes
    - Click Count (0)
  3. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java

        }
    
        /** {@inheritDoc} */
        @Override
        public boolean equals(Object object) {
            if (this == object) {
                return true;
            }
    
            if (object instanceof MojoDescriptor other) {
                return Objects.equals(getPluginDescriptor(), other.getPluginDescriptor())
                        && Objects.equals(getGoal(), other.getGoal());
            }
    
            return false;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 21.7K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/ImmutableRangeSet.java

        checkNotNull(rangeSet);
        if (rangeSet.isEmpty()) {
          return of();
        } else if (rangeSet.encloses(Range.all())) {
          return all();
        }
    
        if (rangeSet instanceof ImmutableRangeSet) {
          ImmutableRangeSet<C> immutableRangeSet = (ImmutableRangeSet<C>) rangeSet;
          if (!immutableRangeSet.isPartialView()) {
            return immutableRangeSet;
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

          assertEquals(expected.contains(i), view.contains(i));
          assertEquals(expected.rangeContaining(i), view.rangeContaining(i));
        }
        testEnclosing(view);
        if (view instanceof TreeRangeSet) {
          testRangesByLowerBounds((TreeRangeSet<Integer>) view, expected.asRanges());
        }
      }
    
      private static final ImmutableList<Cut<Integer>> CUTS_TO_TEST;
    
      static {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        private int value;
    
        IntHolder(int value) {
          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          return (o instanceof IntHolder) && ((IntHolder) o).value == value;
        }
    
        @Override
        public int hashCode() {
          return value;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 29.8K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/cors/CorsHandlerTest.java

                    processOrigin = origin;
                    processRequest = request;
                    processResponse = response;
    
                    // Simulate adding headers for testing
                    if (response instanceof HttpServletResponse) {
                        HttpServletResponse httpResponse = (HttpServletResponse) response;
                        httpResponse.addHeader(ACCESS_CONTROL_ALLOW_ORIGIN, origin);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 26.3K bytes
    - Click Count (0)
  8. guava/src/com/google/common/cache/LocalCache.java

            return lockedGetOrLoad(key, hash, loader);
          } catch (ExecutionException ee) {
            Throwable cause = ee.getCause();
            if (cause instanceof Error) {
              throw new ExecutionError((Error) cause);
            } else if (cause instanceof RuntimeException) {
              throw new UncheckedExecutionException(cause);
            }
            throw ee;
          } finally {
            postReadCleanup();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          } else {
            return Outcome.FAILURE;
          }
        } catch (InvocationTargetException targetException) {
          Throwable actualException = targetException.getTargetException();
          if (actualException instanceof InterruptedException) {
            return Outcome.INTERRUPT;
          } else {
            throw new AssertionError("unexpected exception", targetException);
          }
        } catch (IllegalAccessException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        @Override
        public void funnel(Long value, PrimitiveSink into) {
          into.putLong(value);
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          return object instanceof CustomFunnel;
        }
    
        @Override
        public int hashCode() {
          return 42;
        }
      }
    
      public void testPutReturnValue() {
        for (int i = 0; i < 10; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 23K bytes
    - Click Count (0)
Back to Top