- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 502 for iterable (0.28 sec)
-
android/guava-tests/test/com/google/common/graph/TraverserTest.java
Iterable<Character> result = Traverser.forGraph(graph).breadthFirst(charactersOf("ab")); assertEqualCharNodes(Iterables.limit(result, 2), "ab"); assertThat(graph.requestedNodes).containsExactly('a', 'a', 'b', 'b'); // Iterate again to see if calculation is done again assertEqualCharNodes(Iterables.limit(result, 2), "ab"); assertThat(graph.requestedNodes).containsExactly('a', 'a', 'a', 'b', 'b', 'b'); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 47.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/TraverserTest.java
Iterable<Character> result = Traverser.forGraph(graph).breadthFirst(charactersOf("ab")); assertEqualCharNodes(Iterables.limit(result, 2), "ab"); assertThat(graph.requestedNodes).containsExactly('a', 'a', 'b', 'b'); // Iterate again to see if calculation is done again assertEqualCharNodes(Iterables.limit(result, 2), "ab"); assertThat(graph.requestedNodes).containsExactly('a', 'a', 'a', 'b', 'b', 'b'); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 47.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
*/ protected IteratorTester( int steps, Iterable<? extends IteratorFeature> features, Iterable<E> expectedElements, KnownOrder knownOrder) { super(steps, Collections.<E>singleton(null), features, expectedElements, knownOrder, 0); } @Override protected final Iterable<Stimulus<E, Iterator<E>>> getStimulusValues() { return iteratorStimuli(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/PairwiseEquivalence.java
implements Serializable { final Equivalence<E> elementEquivalence; PairwiseEquivalence(Equivalence<E> elementEquivalence) { this.elementEquivalence = Preconditions.checkNotNull(elementEquivalence); } @Override protected boolean doEquivalent(Iterable<T> iterableA, Iterable<T> iterableB) { Iterator<T> iteratorA = iterableA.iterator();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 23 15:09:35 UTC 2023 - 2.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java
return generator.create(elements); } @Override public Entry<K, V>[] createArray(int length) { return generator.createArray(length); } @Override public Iterable<Entry<K, V>> order(List<Entry<K, V>> insertionOrder) { return generator.order(insertionOrder); } @SuppressWarnings("unchecked") @Override public K[] createKeyArray(int length) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/JoinerTest.java
// <Integer> needed to prevent warning :( private static final Iterable<Integer> ITERABLE_ = Arrays.<Integer>asList(); private static final Iterable<Integer> ITERABLE_1 = Arrays.asList(1); private static final Iterable<Integer> ITERABLE_12 = Arrays.asList(1, 2); private static final Iterable<Integer> ITERABLE_123 = Arrays.asList(1, 2, 3); private static final Iterable<@Nullable Integer> ITERABLE_NULL = Arrays.asList((Integer) null);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 17 18:14:12 UTC 2024 - 11.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java
* @return {@link ClassLoaderIterator}をラップした{@link Iterable} */ public static Iterable<ClassLoader> iterable(final ClassLoader classLoader) { return () -> new ClassLoaderIterator(classLoader); } /** * インスタンスを構築します。 * * @param classLoader * クラスローダ。{@literal null}であってはいけません */ public ClassLoaderIterator(final ClassLoader classLoader) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
POST_ORDER { @Override <T> Iterable<T> view(T root, TreeTraverser<T> viewer) { return viewer.postOrderTraversal(root); } }, BREADTH_FIRST { @Override <T> Iterable<T> view(T root, TreeTraverser<T> viewer) { return viewer.breadthFirstTraversal(root); } }; abstract <T> Iterable<T> view(T root, TreeTraverser<T> viewer); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 26 19:18:53 UTC 2019 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
Iterable<Double> iterable = iterable(Collections.<Double>emptySet()); assertThat(ImmutableDoubleArray.copyOf(iterable)).isSameInstanceAs(ImmutableDoubleArray.of()); } public void testCopyOf_iterable_notCollection_nonempty() { List<Double> list = Arrays.asList(0.0, 1.0, 3.0); ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(iterable(list)); list.set(2, 2.0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/MultiIterator.java
* * @param <E> * 要素の型 * @param iterables * {@link Iterable}の並び。{@literal null}であってはいけません * @return {@link MultiIterator}をラップした{@link Iterable} */ public static <E> Iterable<E> iterable(final Iterable<E>... iterables) { assertArgumentNotNull("iterables", iterables); @SuppressWarnings("unchecked")
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.7K bytes - Viewed (0)