- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 618 for iterables (0.05 seconds)
-
guava/src/com/google/common/collect/HashMultiset.java
* * @param elements the elements that the multiset should contain */ public static <E extends @Nullable Object> HashMultiset<E> create( Iterable<? extends E> elements) { HashMultiset<E> multiset = create(Multisets.inferDistinctElements(elements)); Iterables.addAll(multiset, elements); return multiset; } private HashMultiset() { super(new HashMap<E, Count>()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 3.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
} private static class CountingIterable implements Iterable<String> { int count = 0; @Override public Iterator<String> iterator() { count++; return Iterators.forArray("a", "b", "a"); } } public void testCopyOf_plainIterable() { CountingIterable iterable = new CountingIterable(); Set<String> set = copyOf(iterable); assertEquals(2, set.size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 18.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertTrue; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Equivalence; import com.google.common.collect.Iterables; import com.google.common.testing.RelationshipTester.Item; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.ArrayList; import java.util.List; import org.jspecify.annotations.NullMarked;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 6.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.collect; import static com.google.common.collect.Iterables.elementsEqual; import static com.google.common.testing.SerializableTester.reserialize; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.assertTrue;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 8.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/StatsTesting.java
} boolean hasAnyPositiveInfinity() { return Iterables.any(values, Predicates.equalTo(POSITIVE_INFINITY)); } boolean hasAnyNegativeInfinity() { return Iterables.any(values, Predicates.equalTo(NEGATIVE_INFINITY)); } boolean hasAnyNaN() { return Iterables.any(values, Predicates.equalTo(NaN)); } boolean hasAnyNonFinite() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 24K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
assertTrue(emptyConcat.isEmpty()); } public void testConcat_infiniteIterable() throws IOException { CharSource source = CharSource.wrap("abcd"); Iterable<CharSource> cycle = Iterables.cycle(ImmutableList.of(source)); CharSource concatenated = CharSource.concat(cycle); String expected = "abcdabcd";
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.math; import static com.google.common.collect.Iterables.get; import static com.google.common.collect.Iterables.size; import static com.google.common.math.MathTesting.ALL_DOUBLE_CANDIDATES; import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CompoundOrdering.java
this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary}; } @SuppressWarnings("unchecked") // Generic array creation CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) { this.comparators = Iterables.toArray(comparators, (Comparator<? super T>[]) new Comparator<?>[0]); } @Override public int compare(@ParametricNullness T left, @ParametricNullness T right) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 2.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.math; import static com.google.common.collect.Iterables.get; import static com.google.common.collect.Iterables.size; import static com.google.common.math.MathTesting.ALL_DOUBLE_CANDIDATES; import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0)