Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for iter (0.21 sec)

  1. guava/src/com/google/common/collect/Iterables.java

       * Queue#isEmpty} and {@link Queue#remove()}, since {@link Queue}'s iteration order is undefined.
       * Calling {@link Iterator#hasNext()} on a generated iterator from the returned iterable may cause
       * an item to be immediately dequeued for return on a subsequent call to {@link Iterator#next()}.
       *
       * <p>Whether the input {@code iterable} is a {@link Queue} or not, the returned {@code Iterable}
       * is not thread-safe.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

        monitor.enter();
        try {
          return new Itr();
        } finally {
          monitor.leave();
        }
      }
    
      /** Iterator for MonitorBasedArrayBlockingQueue */
      private class Itr implements Iterator<E> {
        /** Index of element to be returned by next, or a negative number if no such. */
        private int nextIndex;
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> to concatenate an arbitrary number of streams, use {@code
       * Stream.of(stream1, stream2, ...).flatMap(s -> s)}. If the sources are iterables, use {@code
       * Stream.of(iter1, iter2, ...).flatMap(Streams::stream)}.
       *
       * @throws NullPointerException if any of the provided iterables is {@code null}
       * @since 20.0
       */
      @SafeVarargs
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

                final LabelTypeItem item = new LabelTypeItem();
                item.setLabel(labelType.getName());
                item.setValue(labelType.getValue());
                item.setPermissions(labelType.getPermissions());
                item.setVirtualHost(labelType.getVirtualHost());
                item.setLocale(labelType.getLocale());
                itemList.add(item);
            }
            labelTypeItemList = itemList;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 11.7K bytes
    - Viewed (2)
  5. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        // Each group is a List of items, each item has a list of factory args.
        final List<List<List<Object>>> argGroups = Lists.newArrayList();
        argGroups.add(ImmutableList.of(args, equalArgs));
        EqualsTester tester =
            new EqualsTester(
                new ItemReporter() {
                  @Override
                  String reportItem(Item<?> item) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/search/SearchAction.java

                    for (final Map<String, String> map : labelTypeItems) {
                        if (map.get(Constants.ITEM_VALUE).equals(labelTypeValue)) {
                            buf.append(' ');
                            buf.append(map.get(Constants.ITEM_LABEL));
                            break;
                        }
                    }
                }
            }
            return buf.toString();
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        try {
          equalsTester.testEquals();
        } catch (AssertionFailedError e) {
          assertErrorMessage(
              e,
              equalObject1
                  + " [group 1, item 1] must be Object#equals to "
                  + notEqualObject1
                  + " [group 1, item 2]");
          return;
        }
        fail("Should get not equal to equal object error");
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/HashingTest.java

        Random r = new Random(9);
        for (int i = 0; i < ITERS; i++) {
          countRemaps(r.nextLong(), map);
        }
        for (int shard = 2; shard <= MAX_SHARDS; shard++) {
          // Rough: don't exceed 1.2x the expected number of remaps by more than 20
          assertTrue(map.get(shard) <= 1.2 * ITERS / shard + 20);
        }
      }
    
      private void countRemaps(long h, AtomicLongMap<Integer> map) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/xml/DomUtil.java

            assertArgumentNotNull("children", children);
            assertArgumentNotNull("buf", buf);
    
            final int length = children.getLength();
            for (int i = 0; i < length; ++i) {
                appendNode(children.item(i), buf);
            }
        }
    
        /**
         * {@link NamedNodeMap}の文字列表現を追加します。
         *
         * @param attrs
         *            属性。{@literal null}であってはいけません
         * @param buf
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      @Override
      public Iterator<E> iterator() {
        return new Itr(toArray());
      }
    
      /** Snapshot iterator that works off copy of underlying q array. */
      private class Itr implements Iterator<E> {
        final Object[] array; // Array of all elements
        int cursor; // index of next element to return;
        int lastRet; // index of last element, or -1 if no such
    
        Itr(Object[] array) {
          lastRet = -1;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
Back to top