- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 375 for iterare (0.22 sec)
-
guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterable<String> iterable = asList("a", "b"); Iterator<String> cycle = Iterators.cycle(iterable); cycle.next(); try { cycle.remove(); fail("no exception thrown"); } catch (UnsupportedOperationException expected) { } } public void testCycleRemoveAfterHasNext() { Iterable<String> iterable = Lists.newArrayList("a");
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 55.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
CountingIterable iterable = new CountingIterable(); List<String> list = ImmutableList.copyOf(iterable); assertEquals(asList("a", "b", "a"), list); } public void testCopyOf_plainIterable_iteratesOnce() { CountingIterable iterable = new CountingIterable(); ImmutableList<String> unused = ImmutableList.copyOf(iterable); assertEquals(1, iterable.count); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 23.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayIterator.java
protected int index = 0; /** * for each構文で使用するために配列をラップした{@link Iterable}を返します。 * * @param <T> * 列挙する要素の型 * @param items * イテレートする要素の並び。{@literal null}であってはいけません * @return 配列をラップした{@link Iterable} */ public static <T> Iterable<T> iterable(final T... items) { assertArgumentNotNull("items", items);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
} /** * Returns a new {@code EnumMultiset} instance containing the given elements. Unlike {@link * EnumMultiset#create(Iterable)}, this method does not produce an exception on an empty iterable. * * @since 14.0 */ public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements, Class<E> type) { EnumMultiset<E> result = create(type); Iterables.addAll(result, elements); return result; }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/StreamsTest.java
// but we want the zip itself to work assertThat( Streams.zip( Stream.iterate(1, i -> i + 1).map(String::valueOf), Stream.iterate(1, i -> i + 1), (String str, Integer i) -> str.equals(Integer.toString(i))) .limit(100)) .doesNotContain(false); } public void testZipDifferingLengths() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 20K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
assertEquals(1, iterable.count); } public void testCopyOf_hashMultiset() { Multiset<String> iterable = HashMultiset.create(asList("a", "b", "a")); Multiset<String> multiset = ImmutableMultiset.copyOf(iterable); assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset); } public void testCopyOf_treeMultiset() { Multiset<String> iterable = TreeMultiset.create(asList("a", "b", "a"));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 21K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
} // Unsafe, see ImmutableSortedSetFauxverideShim. @SuppressWarnings("unchecked") public static <E> ImmutableSortedSet<E> copyOf(Iterable<? extends E> elements) { return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterable<E>) elements, false); } // Unsafe, see ImmutableSortedSetFauxverideShim. @SuppressWarnings("unchecked")
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 15.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RangeSet.java
* is empty. * * <p>This is equivalent to checking if this range set {@link #encloses} each range in {@code * other}. * * @since 21.0 */ boolean enclosesAll(Iterable<Range<C>> other); /** Returns {@code true} if this range set contains no ranges. */ boolean isEmpty(); /** * Returns the minimal range which {@linkplain Range#encloses(Range) encloses} all ranges in this
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 9.8K 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(); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LegacyComparable.java
static final LegacyComparable Y = new LegacyComparable("y"); static final LegacyComparable Z = new LegacyComparable("z"); static final Iterable<LegacyComparable> VALUES_FORWARD = Arrays.asList(X, Y, Z); static final Iterable<LegacyComparable> VALUES_BACKWARD = Arrays.asList(Z, Y, X); private final String value; LegacyComparable(String value) { this.value = value; } @Override
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 20:09:59 GMT 2024 - 2.3K bytes - Viewed (0)