Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 345 for ToArray (0.06 sec)

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

      }
    
      private static <T> @Nullable T invoke(Invokable<?, ? extends T> factory, List<?> args)
          throws InvocationTargetException, IllegalAccessException {
        T returnValue = factory.invoke(null, args.toArray());
        if (returnValue == null) {
          Assert.assertTrue(
              factory + " returns null but it's not annotated with @Nullable", isNullable(factory));
        }
        return returnValue;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. docs/smb3-features/06-witness-protocol-design.md

                unregisterFutures.add(unregister(registration));
            }
            
            // Wait for all unregistrations to complete
            try {
                CompletableFuture.allOf(unregisterFutures.toArray(new CompletableFuture[0]))
                    .get(10, TimeUnit.SECONDS);
            } catch (Exception e) {
                log.warn("Error during witness client shutdown", e);
            }
            
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SystemHelper.java

         */
        @SuppressWarnings("unchecked")
        public Pair<String, String>[] getDesignJspFileNames() {
            return designJspFileNameMap.entrySet().stream().map(e -> new Pair<>(e.getKey(), e.getValue())).toArray(n -> new Pair[n]);
        }
    
        /**
         * Refreshes the design JSP files for all virtual hosts.
         *
         * @return A list of paths to the refreshed files.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterators.java

       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
          Iterator<? extends T> iterator, Class<@NonNull T> type) {
        List<T> list = Lists.newArrayList(iterator);
        return Iterables.<T>toArray(list, type);
      }
    
      /**
       * Adds all elements in {@code iterator} to {@code collection}. The iterator will be left
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function_test.cc

        DefineT(num_opers, opers, ToOutput(inputs), ToOutput(outputs), output_names,
                expect_failure);
      }
    
      // Caller must delete[] the returned value
      static const char** ToArray(const std::vector<string>& strs) {
        const char** ptr = nullptr;
        if (!strs.empty()) {
          ptr = new const char*[strs.size()];
          for (size_t i = 0; i < strs.size(); ++i) {
            ptr[i] = strs[i].c_str();
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (1)
  6. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

              // So just refuse to generate.
              return null;
            }
            args.add(argValue);
          }
          return invokeGeneratorMethod(generate, args.toArray());
        }
        return defaultGenerate(rawType);
      }
    
      private <T> @Nullable T defaultGenerate(Class<T> rawType) {
        if (rawType.isInterface()) {
          // always create a new proxy
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ListsTest.java

                          @Override
                          public String apply(String input) {
                            throw new IndexOutOfBoundsException();
                          }
                        })
                    .toArray());
      }
    
      private static void assertTransformListIterator(List<String> list) {
        ListIterator<String> iterator = list.listIterator(1);
        assertEquals(1, iterator.nextIndex());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbFile.java

            return (String[]) list.toArray(new String[list.size()]);
        }
    
        SmbFile[] listFiles(final String wildcard, final int searchAttributes, final SmbFilenameFilter fnf, final SmbFileFilter ff)
                throws SmbException {
            final ArrayList list = new ArrayList();
            doEnum(list, true, wildcard, searchAttributes, fnf, ff);
            return (SmbFile[]) list.toArray(new SmbFile[list.size()]);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMap.java

          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        @SuppressWarnings("unchecked") // we'll only be using getKey and getValue, which are covariant
        Entry<K, V>[] entryArray = (Entry<K, V>[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
        switch (entryArray.length) {
          case 0:
            return of();
          case 1:
            // requireNonNull is safe because the first `size` elements have been filled in.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  10. okhttp/src/androidMain/baseline-prof.txt

    HSPLkotlin/collections/AbstractList;-><init>()V
    HSPLkotlin/collections/AbstractMutableList;-><init>()V
    HSPLkotlin/collections/ArrayAsCollection;-><init>([Ljava/lang/Object;Z)V
    HSPLkotlin/collections/ArrayAsCollection;->toArray()[Ljava/lang/Object;
    HSPLkotlin/collections/ArraysKt___ArraysKt;->asList([Ljava/lang/Object;)Ljava/util/List;
    HSPLkotlin/collections/ArraysKt___ArraysKt;->copyInto$default([B[BIIII)[B
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
Back to top