Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 141 - 150 of 1,610 for instanceof (0.25 seconds)

  1. android/guava/src/com/google/common/collect/Sets.java

       */
      public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet(Iterable<E> elements) {
        if (elements instanceof ImmutableEnumSet) {
          return (ImmutableEnumSet<E>) elements;
        } else if (elements instanceof Collection) {
          Collection<E> collection = (Collection<E>) elements;
          if (collection.isEmpty()) {
            return ImmutableSet.of();
          } else {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 81.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/opensearch/user/allcommon/EsAbstractBehavior.java

                BUILDER builder = call.apply(esEntity);
                if (builder instanceof IndexRequestBuilder) {
                    if (builderEntityCall != null) {
                        builderEntityCall.callback(builder);
                    }
                    bulkBuilder.add((IndexRequestBuilder) builder);
                } else if (builder instanceof UpdateRequestBuilder) {
                    if (builderEntityCall != null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 26.4K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/LdapOperationExceptionTest.java

            LdapOperationException exception = new LdapOperationException("Test");
    
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_serialVersionUID() {
            // Test that exception is serializable
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

            // Verify inheritance hierarchy
            assertTrue(exception instanceof FessSystemException);
            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_stackTracePresence() {
            // Setup
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  5. android/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.)
         *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 46.3K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/Multisets.java

       * @return an unmodifiable view of the multiset
       */
      public static <E extends @Nullable Object> Multiset<E> unmodifiableMultiset(
          Multiset<? extends E> multiset) {
        if (multiset instanceof UnmodifiableMultiset || multiset instanceof ImmutableMultiset) {
          @SuppressWarnings("unchecked") // Since it's unmodifiable, the covariant cast is safe
          Multiset<E> result = (Multiset<E>) multiset;
          return result;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.2K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/entity/QueryContextTest.java

            // Verify that field logs are created
            Object fieldLogs = getMockRequest().getAttribute(Constants.FIELD_LOGS);
            assertNotNull(fieldLogs);
            assertTrue(fieldLogs instanceof Map);
        }
    
        // Test setQueryBuilder and getQueryBuilder
        @Test
        public void test_setAndGetQueryBuilder() {
            queryContext = new QueryContext("test", false);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.6K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

        for (Collection<V> valueCollection : multimap().asMap().values()) {
          assertTrue(valueCollection instanceof Set);
        }
      }
    
      public void testAsMapGetImplementsSet() {
        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof Set);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testAsMapRemoveImplementsSet() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/reflect/TypeParameter.java

        Type type = capture();
        checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type);
        this.typeVariable = (TypeVariable<?>) type;
      }
    
      @Override
      public final int hashCode() {
        return typeVariable.hashCode();
      }
    
      @Override
      public final boolean equals(@Nullable Object o) {
        if (o instanceof TypeParameter) {
          TypeParameter<?> that = (TypeParameter<?>) o;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/base/Functions.java

       */
      public static Function<Object, String> toStringFunction() {
        return ToStringFunction.INSTANCE;
      }
    
      // enum singleton pattern
      private enum ToStringFunction implements Function<Object, String> {
        INSTANCE;
    
        @Override
        public String apply(Object o) {
          checkNotNull(o); // eager for GWT.
          return o.toString();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 15.4K bytes
    - Click Count (0)
Back to Top