Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 384 for toArray (0.29 sec)

  1. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        checkArgument(
            strictlyOrderedElements.length >= 3,
            "strictlyOrderedElements requires at least 3 elements");
        List<T> list = asList(strictlyOrderedElements);
    
        // for use calling Collection.toArray later
        T[] emptyArray = Platform.newArray(strictlyOrderedElements, 0);
    
        // shoot me, but I didn't want to deal with wildcards through the whole test
        @SuppressWarnings("unchecked")
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

        checkArgument(
            strictlyOrderedElements.length >= 3,
            "strictlyOrderedElements requires at least 3 elements");
        List<T> list = asList(strictlyOrderedElements);
    
        // for use calling Collection.toArray later
        T[] emptyArray = Platform.newArray(strictlyOrderedElements, 0);
    
        // shoot me, but I didn't want to deal with wildcards through the whole test
        @SuppressWarnings("unchecked")
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/TraversalUtil.java

                    list.add(resourcesType);
                }
            }
            if (list.isEmpty()) {
                logger.log("WCL0014", rootPackage);
                return EMPTY_ARRAY;
            }
            return list.toArray(new Traverser[list.size()]);
        }
    
        /**
         * Creates and returns a {@link Traverser} for handling the specified URL.
         * <p>
         * Returns <code>null</code> if the protocol of the URL is unknown.
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

            }
            for (final String k : keywords) {
                if (MAX_QUERY_TERM_LENGTH < k.length()) {
                    return new String[0];
                }
            }
            return keywords.toArray(String[]::new);
        }
    
        /**
         * Extracts keywords from the given query string based on the specified fields.
         *
         * @param q the query string to parse and extract keywords from
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sun Nov 23 11:21:40 UTC 2025
    - 17.5K bytes
    - Viewed (1)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

            } catch (final ChildUrlsException e) {
                final Set<RequestData> urlSet = e.getChildUrlList();
                assertEquals(1, urlSet.size());
                for (final RequestData requestData : urlSet.toArray(new RequestData[urlSet.size()])) {
                    String url = requestData.getUrl();
                    assertTrue(url.contains("dir1/test3.txt"));
                }
            } finally {
                if (server != null) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Ordering.java

            // specialized for k much smaller than n.
    
            @SuppressWarnings("unchecked") // c only contains E's and doesn't escape
            E[] array = (E[]) collection.toArray();
            sort(array, this);
            if (array.length > k) {
              array = Arrays.copyOf(array, k);
            }
            return unmodifiableList(asList(array));
          }
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

              V value = (V) v;
              builder.add(mapEntry(key, value));
            }
          }
          checkArgument(keySet.size() == elements.length, "Duplicate keys");
          return multimapGenerator.create(builder.toArray()).asMap();
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public Entry<K, Collection<V>>[] createArray(int length) {
          return (Entry<K, Collection<V>>[]) new Entry<?, ?>[length];
        }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 20:54:16 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java

            for (final String line : values) {
                if (StringUtil.isNotBlank(line)) {
                    list.add(line.trim());
                }
            }
            return list.toArray(new String[list.size()]);
        }
    
        // ===================================================================================
        //                                                                              JSP
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 23.7K bytes
    - Viewed (1)
  9. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

                builder.append(FIRST_ESC_CHAR);
                builder.append(SECOND_ESC_CHAR);
                builder.append('m');
            } else {
                doAppendEscapeSequence('m', attributeOptions.toArray());
            }
            attributeOptions.clear();
        }
    
        private Ansi doAppendEscapeSequence(char command, Object... options) {
            builder.append(FIRST_ESC_CHAR);
            builder.append(SECOND_ESC_CHAR);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

            if (!arList.isEmpty()) {
                final long commitMarginTime = fessConfig.getIndexerWebfsCommitMarginTimeAsInteger().longValue();
                for (final AccessResult<?> ar : arList.toArray(new AccessResult[arList.size()])) {
                    if (ar.getCreateTime().longValue() > execTime - commitMarginTime) {
                        arList.remove(ar);
                    }
                }
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 32.9K bytes
    - Viewed (0)
Back to top