Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 383 for toArray (0.05 sec)

  1. android/guava/src/com/google/common/util/concurrent/Futures.java

        }
    
        @SuppressWarnings("unchecked")
        ImmutableList<ListenableFuture<T>> delegatesCast = (ImmutableList) delegates;
        return delegatesCast;
      }
    
      /** Can't use Iterables.toArray because it's not gwt compatible */
      @SuppressWarnings("unchecked")
      private static <T extends @Nullable Object> ListenableFuture<? extends T>[] gwtCompatibleToArray(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/reflect/TypeResolver.java

              if (combined.size() > 1) { // Object is implicit and only useful if it's the only bound.
                combined.remove(Object.class);
              }
              return super.captureAsTypeVariable(combined.toArray(new Type[0]));
            }
          };
        }
    
        private WildcardCapturer notForTypeVariable() {
          return new WildcardCapturer(id);
        }
    
        @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/upgrade/AdminUpgradeAction.java

                    if (contentMap.get("path") instanceof final List<?> pathList) {
                        return pathList.stream().map(Object::toString).toArray(n -> new String[n]);
                    }
                } else if (response.getContentException() != null) {
                    logger.warn("ConfigSync request failed.", response.getContentException());
                } else {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 54K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

          queue[i] = null;
        }
        size = 0;
      }
    
      @Override
      @J2ktIncompatible // Incompatible return type change. Use inherited (unoptimized) implementation
      public Object[] toArray() {
        Object[] copyTo = new Object[size];
        arraycopy(queue, 0, copyTo, 0, size);
        return copyTo;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  5. 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()]);
        }
    
        /**
         * URLを扱う{@link Traverser}を作成して返します。
         * <p>
         * URLのプロトコルが未知の場合は<code>null</code>を返します。
         * </p>
         *
         * @param url
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

        }
    
        List<String> sampleDataList = new ArrayList<>();
        sampleDataList.addAll(hits);
        sampleDataList.addAll(misses);
        Collections.shuffle(sampleDataList);
        sampleData = sampleDataList.toArray(new String[sampleDataList.size()]);
      }
    
      // Since we can't pass a concrete SomeEnum.class directly, we need to use a raw type.
      @SuppressWarnings("unchecked")
      @Benchmark
      boolean getIfPresent(int repetitions) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multisets.java

        @SuppressWarnings("unchecked") // generics+arrays
        // TODO(cpovirk): Consider storing an Entry<?> instead of Entry<E>.
        Entry<E>[] entries = (Entry<E>[]) multiset.entrySet().toArray((Entry<E>[]) new Entry<?>[0]);
        Arrays.sort(entries, DecreasingCount.INSTANCE);
        return ImmutableMultiset.copyFromEntries(asList(entries));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Multisets.java

        @SuppressWarnings("unchecked") // generics+arrays
        // TODO(cpovirk): Consider storing an Entry<?> instead of Entry<E>.
        Entry<E>[] entries = (Entry<E>[]) multiset.entrySet().toArray((Entry<E>[]) new Entry<?>[0]);
        Arrays.sort(entries, DecreasingCount.INSTANCE);
        return ImmutableMultiset.copyFromEntries(asList(entries));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          assertEquals(0, q.size());
          assertNull(q.peek());
          assertNull(q.poll());
          assertNull(q.poll(0, MILLISECONDS));
          assertEquals("[]", q.toString());
          assertTrue(Arrays.equals(q.toArray(), new Object[0]));
          assertFalse(q.iterator().hasNext());
          try {
            q.element();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top