Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 117 for newArrayList (0.21 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        }
    
        final Service service;
    
        RecordingListener(Service service) {
          this.service = service;
        }
    
        @GuardedBy("this")
        final List<State> stateHistory = Lists.newArrayList();
    
        final CountDownLatch completionLatch = new CountDownLatch(1);
    
        ImmutableList<State> getStateHistory() throws Exception {
          completionLatch.await();
          synchronized (this) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          void assertMultimapIsUnmodifiable(Multimap<K, V> multimap, K sampleKey, V sampleValue) {
        List<Entry<K, V>> originalEntries =
            Collections.unmodifiableList(Lists.newArrayList(multimap.entries()));
    
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        Collection<V> sampleValueAsCollection = Collections.singleton(sampleValue);
    
        // Test #clear()
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 20:31:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * caused by the (R)ateLimiter U1.0 means the (U)ser caused the stopwatch to sleep for a second.
       */
      static class FakeStopwatch extends SleepingStopwatch {
        long instant = 0L;
        final List<String> events = Lists.newArrayList();
    
        @Override
        public long readMicros() {
          return NANOSECONDS.toMicros(instant);
        }
    
        void sleepMillis(int millis) {
          sleepMicros("U", MILLISECONDS.toMicros(millis));
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Predicates.java

       * {@link Predicate#apply}), the returned predicate may not be <i>consistent with equals</i>. For
       * example, {@code instanceOf(ArrayList.class)} will yield different results for the two equal
       * instances {@code Lists.newArrayList(1)} and {@code Arrays.asList(1)}.
       */
      @GwtIncompatible // Class.isInstance
      public static <T extends @Nullable Object> Predicate<T> instanceOf(Class<?> clazz) {
        return new InstanceOfPredicate<>(clazz);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

       * @since 14.0
       */
      @DoNotMock
      public static final class Builder<K extends Comparable<?>, V> {
        private final List<Entry<Range<K>, V>> entries;
    
        public Builder() {
          this.entries = Lists.newArrayList();
        }
    
        /**
         * Associates the specified range with the specified value.
         *
         * @throws IllegalArgumentException if {@code range} is empty
         */
        @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Ordering.java

          return Collections.emptyList();
        } else if (k >= Integer.MAX_VALUE / 2) {
          // k is really large; just do a straightforward sorted-copy-and-sublist
          ArrayList<E> list = Lists.newArrayList(iterator);
          Collections.sort(list, this);
          if (list.size() > k) {
            list.subList(k, list.size()).clear();
          }
          list.trimToSize();
          return Collections.unmodifiableList(list);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/WebConfigDbm.java

            return _columnUserAgent;
        }
    
        public ColumnInfo columnVirtualHosts() {
            return _columnVirtualHosts;
        }
    
        protected List<ColumnInfo> ccil() {
            List<ColumnInfo> ls = newArrayList();
            ls.add(columnAvailable());
            ls.add(columnBoost());
            ls.add(columnConfigParameter());
            ls.add(columnCreatedBy());
            ls.add(columnCreatedTime());
            ls.add(columnDepth());
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         *
         * @param <E>
         *            {@link ArrayList}の要素型
         * @return {@link ArrayList}の新しいインスタンス
         * @see ArrayList#ArrayList()
         */
        public static <E> ArrayList<E> newArrayList() {
            return new ArrayList<>();
        }
    
        /**
         * {@link ArrayList}の新しいインスタンスを作成して返します。
         *
         * @param <E>
         *            {@link ArrayList}の要素型
         * @param c
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

            .thatReturn(Executor.class)
            .testNulls();
      }
    
      private static class TestApplication extends Application {
        private final List<Thread> hooks = Lists.newArrayList();
    
        @Override
        synchronized void addShutdownHook(Thread hook) {
          hooks.add(hook);
        }
    
        synchronized void shutdown() throws InterruptedException {
          for (Thread hook : hooks) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/thumbnail/ThumbnailManager.java

                if (StringUtil.isBlank(fessConfig.getSchedulerTargetName())) {
                    cb.query().setTarget_Equal(Constants.DEFAULT_JOB_TARGET);
                } else {
                    cb.query().setTarget_InScope(Lists.newArrayList(Constants.DEFAULT_JOB_TARGET, fessConfig.getSchedulerTargetName()));
                }
                cb.query().addOrderBy_CreatedTime_Asc();
                cb.fetchFirst(fessConfig.getPageThumbnailQueueMaxFetchSizeAsInteger());
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top