- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 463 for iterables (0.22 sec)
-
guava/src/com/google/common/collect/TreeRangeMap.java
} private final class AsMapOfRanges extends IteratorBasedAbstractMap<Range<K>, V> { final Iterable<Entry<Range<K>, V>> entryIterable; @SuppressWarnings("unchecked") // it's safe to upcast iterables AsMapOfRanges(Iterable<RangeMapEntry<K, V>> entryIterable) { this.entryIterable = (Iterable) entryIterable; } @Override public boolean containsKey(@CheckForNull Object key) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 26.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multiset.java
* {@link Collections#frequency} (which would presumably perform more poorly). * * <p><b>Note:</b> the utility method {@link Iterables#frequency} generalizes this operation; it * correctly delegates to this method when dealing with a multiset, but it can also accept any * other iterable type. * * @param element the element to count occurrences of
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Jun 17 14:40:53 UTC 2023 - 19.7K bytes - Viewed (0) -
guava/src/com/google/common/base/Throwables.java
* will not reflect any subsequent changes to the cause chain. * * <p>Here's an example of how it can be used to find specific types of exceptions in the cause * chain: * * <pre> * Iterables.filter(Throwables.getCausalChain(e), IOException.class)); * </pre> * * @param throwable the non-null {@code Throwable} to extract causes from
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 20.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
* is null. The builder is left in an invalid state. */ @CanIgnoreReturnValue public Builder<K, V> putAll(K key, Iterable<? extends V> values) { if (key == null) { throw new NullPointerException("null key in entry: null=" + Iterables.toString(values)); } Iterator<? extends V> valuesItr = values.iterator(); if (!valuesItr.hasNext()) { return this; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 27.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableBiMap.java
* entries in the same order as the original iterable. * * @throws IllegalArgumentException if two keys have the same value or two values have the same * key * @throws NullPointerException if any key, value, or entry is null * @since 19.0 */ public static <K, V> ImmutableBiMap<K, V> copyOf( Iterable<? extends Entry<? extends K, ? extends V>> entries) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Converter.java
* (`implements Function<@PolyNull A, @PolyNull B>`), at least as far as I know.) */ public Iterable<B> convertAll(Iterable<? extends A> fromIterable) { checkNotNull(fromIterable, "fromIterable"); return new Iterable<B>() { @Override public Iterator<B> iterator() { return new Iterator<B>() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 23K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Hashing.java
* functions together: {@code Hashing.concatenating(Hashing.sha512(), Hashing.sha512())}. * * @since 19.0 */ public static HashFunction concatenating(Iterable<HashFunction> hashFunctions) { checkNotNull(hashFunctions); // We can't use Iterables.toArray() here because there's no hash->collect dependency List<HashFunction> list = new ArrayList<>(); for (HashFunction hashFunction : hashFunctions) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 29.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SetsTest.java
} public void testNewTreeSetFromIterableDerived() { Iterable<Derived> iterable = asList(new Derived("foo"), new Derived("bar")); TreeSet<Derived> set = Sets.newTreeSet(iterable); assertThat(set).containsExactly(new Derived("bar"), new Derived("foo")).inOrder(); } public void testNewTreeSetFromIterableNonGeneric() { Iterable<LegacyComparable> iterable =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 48.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Range.java
} /** * Returns {@code true} if every element in {@code values} is {@linkplain #contains contained} in * this range. */ public boolean containsAll(Iterable<? extends C> values) { if (Iterables.isEmpty(values)) { return true; } // this optimizes testing equality of two range-backed sets if (values instanceof SortedSet) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 27.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multiset.java
* {@link Collections#frequency} (which would presumably perform more poorly). * * <p><b>Note:</b> the utility method {@link Iterables#frequency} generalizes this operation; it * correctly delegates to this method when dealing with a multiset, but it can also accept any * other iterable type. * * @param element the element to count occurrences of
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Jun 17 14:40:53 UTC 2023 - 21K bytes - Viewed (0)