- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 392 for Iterables (0.04 sec)
-
android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
Iterable<Long> iterable = iterable(Collections.<Long>emptySet()); assertThat(ImmutableLongArray.copyOf(iterable)).isSameInstanceAs(ImmutableLongArray.of()); } public void testCopyOf_iterable_notCollection_nonempty() { List<Long> list = Arrays.asList(0L, 1L, 3L); ImmutableLongArray iia = ImmutableLongArray.copyOf(iterable(list)); list.set(2, 2L);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java
protected ListIteratorTester( int steps, Iterable<E> elementsToInsert, Iterable<? extends IteratorFeature> features, Iterable<E> expectedElements, int startIndex) { super(steps, elementsToInsert, features, expectedElements, KnownOrder.KNOWN_ORDER, startIndex); } @Override protected final Iterable<? extends Stimulus<E, ? super ListIterator<E>>> getStimulusValues() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {}; ImmutableTypeToInstanceMap<Iterable<?>[]> map = ImmutableTypeToInstanceMap.<Iterable<?>[]>builder().put(type, array).build(); assertEquals(1, map.size()); // Redundant cast works around a javac bug. assertThat((Iterable<?>[]) map.getInstance(type)).asList().containsExactly(array[0]); } public void testWildcardType() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
PUT_BOOLEAN() { @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { boolean value = random.nextBoolean(); for (PrimitiveSink sink : sinks) { sink.putBoolean(value); } } }, PUT_BYTE() { @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { int value = random.nextInt();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 25.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/LineIteratorTest.java
/** * @throws Exception */ @Test public void testForEach() throws Exception { final StringReader reader = new StringReader("aaa\nbbb\nccc\n"); for (final String line : LineIterator.iterable(reader)) { System.out.println(line); } }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/BeanDesc.java
* * @return The number of {@link PropertyDesc} */ int getPropertyDescSize(); /** * Returns an {@link Iterable} of {@link PropertyDesc}. * * @return An {@link Iterable} of {@link PropertyDesc} */ Iterable<PropertyDesc> getPropertyDescs(); /** * Returns whether the {@link FieldDesc} exists. * * @param fieldNameRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 24 01:52:43 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AllEqualOrdering.java
return 0; } @Override public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) { return Lists.newArrayList(iterable); } @Override public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) { return ImmutableList.copyOf(iterable); } @SuppressWarnings("unchecked") @Override public <S extends @Nullable Object> Ordering<S> reverse() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jun 04 13:03:16 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassLoaderIterator.java
* @return an {@link Iterable} wrapping a {@link ClassLoaderIterator} */ public static Iterable<ClassLoader> iterable(final ClassLoader classLoader) { return () -> new ClassLoaderIterator(classLoader); } /** * Constructs an instance. * * @param classLoader the class loader (must not be {@literal null}) */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeTraverserTest.java
static final Tree h = new Tree('h', d, e, g); static String iterationOrder(Iterable<? extends Node> iterable) { StringBuilder builder = new StringBuilder(); for (Node t : iterable) { builder.append(t.value); } StringBuilder forEachBuilder = new StringBuilder(); iterable.forEach(t -> forEachBuilder.append(t.value)); assertTrue(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 18:39:06 UTC 2025 - 3.7K 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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.5K bytes - Viewed (0)