Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 417 for ToArray (0.05 seconds)

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

                    return (T) value;
                }
                if (clazz.isAssignableFrom(String[].class)) {
                    return (T) ((List<?>) value).stream().filter(s -> s != null).map(Object::toString).toArray(n -> new String[n]);
                }
    
                if (((List<?>) value).isEmpty()) {
                    return null;
                }
    
                return convertObj(((List<?>) value).get(0), clazz);
            }
    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. android/guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        public @Nullable Object[] toArray() {
          // creating an ArrayList so filtering happens once
          return Lists.newArrayList(iterator()).toArray();
        }
    
        @Override
        @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
        public <T extends @Nullable Object> T[] toArray(T[] array) {
          return Lists.newArrayList(iterator()).toArray(array);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

            return asList = createAsList();
          } else {
            return result;
          }
        }
    
        @Override
        ImmutableList<E> createAsList() {
          return new RegularImmutableAsList<E>(this, toArray());
        }
      }
    
      abstract static class Indexed<E> extends ImmutableSet<E> {
        abstract E get(int index);
    
        @Override
        public UnmodifiableIterator<E> iterator() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainManagerFactory.java

                            getDelegate().getToolchains(session.getSession(), type);
                    return toolchains.stream()
                            .map(ToolchainManagerFactory.this::getToolchainV3)
                            .toArray(ToolchainPrivate[]::new);
                } catch (org.apache.maven.api.services.ToolchainManagerException e) {
                    throw new MisconfiguredToolchainException(e.getMessage(), e);
                }
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 31 10:58:52 GMT 2025
    - 11K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/rank/fusion/RankFusionProcessor.java

            }
            if (availableSearcherNameSet.isEmpty()) {
                return searchers.toArray(new RankFusionSearcher[0]);
            }
            final RankFusionSearcher[] availableSearchers = searchers.stream()
                    .filter(searcher -> availableSearcherNameSet.contains(searcher.getName()))
                    .toArray(RankFusionSearcher[]::new);
            if (availableSearchers.length == 0) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 25 02:13:14 GMT 2025
    - 28K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ImmutableSet.java

          ImmutableSet<E> set = (ImmutableSet<E>) elements;
          if (!set.isPartialView()) {
            return set;
          }
        }
        Object[] array = elements.toArray();
        return construct(array.length, array);
      }
    
      /**
       * Returns an immutable set containing each of {@code elements}, minus duplicates, in the order
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Oct 11 14:54:00 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/collection/ArrayMap.java

                listTable[i] = null;
            }
            size = 0;
        }
    
        /**
         * Converts this map to an array.
         *
         * @return the array
         */
        public Object[] toArray() {
            final Object[] array = new Object[size];
            for (int i = 0; i < array.length; i++) {
                array[i] = getAt(i);
            }
            return array;
        }
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

      when {
        this.isEmpty() -> emptyList()
    
        this.size == 1 -> Collections.singletonList(this[0])
    
        // Collection.toArray returns Object[] (covariant).
        // It is faster than creating real T[] via reflection (Arrays.copyOf).
        else -> (this as java.util.Collection<*>).toArray().asList().unmodifiable() as List<T>
      }
    
    /** Returns an immutable list containing [elements]. */
    @SafeVarargs
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.3K bytes
    - Click Count (1)
  9. android/guava/src/com/google/common/collect/ArrayTable.java

     * <p>This class provides methods involving the underlying array structure, where the array indices
     * correspond to the position of a row or column in the lists of allowed keys and values. See the
     * {@link #at}, {@link #set}, {@link #toArray}, {@link #rowKeyList}, and {@link #columnKeyList}
     * methods for more details.
     *
     * <p>Note that this implementation is not synchronized. If multiple threads access the same cell of
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 13 19:39:21 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/helper/QueryHelper.java

            }
            list.add(createFieldSortBuilder(fieldName, SortOrder.DESC.toString().equalsIgnoreCase(order) ? SortOrder.DESC : SortOrder.ASC));
            defaultSortBuilders = list.toArray(new SortBuilder[list.size()]);
        }
    
        /**
         * Creates a sort builder for the specified field and order.
         * This method handles special cases for score fields and regular field sorting.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 19.9K bytes
    - Click Count (0)
Back to Top