- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 1,096 for entropy (0.06 seconds)
-
guava/src/com/google/common/collect/ImmutableMap.java
public static <K, V> ImmutableMap<K, V> ofEntries(Entry<? extends K, ? extends V>... entries) { @SuppressWarnings("unchecked") // we will only ever read these Entry<K, V>[] entries2 = (Entry<K, V>[]) entries; return RegularImmutableMap.fromEntries(entries2); } /** * Verifies that {@code key} and {@code value} are non-null, and returns a new immutable entry * with those values. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 44.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SortedMultiset.java
/** * Returns the entry of the first element in this multiset, or {@code null} if this multiset is * empty. */ @Nullable Entry<E> firstEntry(); /** * Returns the entry of the last element in this multiset, or {@code null} if this multiset is * empty. */ @Nullable Entry<E> lastEntry(); /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/SortedMultiset.java
/** * Returns the entry of the first element in this multiset, or {@code null} if this multiset is * empty. */ @Nullable Entry<E> firstEntry(); /** * Returns the entry of the last element in this multiset, or {@code null} if this multiset is * empty. */ @Nullable Entry<E> lastEntry(); /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
Iterator<Entry<String, Collection<Integer>>> collectionIterator = multimap.asMap().entrySet().iterator(); Entry<String, Collection<Integer>> entry = collectionIterator.next(); assertThat(entry.getKey()).isEqualTo("foo"); assertThat(entry.getValue()).containsExactly(5, 3).inOrder(); entry = collectionIterator.next(); assertThat(entry.getKey()).isEqualTo("bar");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Serialization.java
Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException { stream.writeInt(multimap.asMap().size()); for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) { stream.writeObject(entry.getKey()); stream.writeInt(entry.getValue().size()); for (V value : entry.getValue()) { stream.writeObject(value); } } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 6.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractSortedMultiset.java
public @Nullable Entry<E> pollFirstEntry() { Iterator<Entry<E>> entryIterator = entryIterator(); if (entryIterator.hasNext()) { Entry<E> result = entryIterator.next(); result = Multisets.immutableEntry(result.getElement(), result.getCount()); entryIterator.remove(); return result; } return null; } @Override public @Nullable Entry<E> pollLastEntry() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 4.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumMap.java
import java.util.Map; import java.util.Map.Entry; /** * GWT emulation of {@link ImmutableEnumMap}. The type parameter is not bounded by {@code Enum<E>} * to avoid code-size bloat. * * @author Hayward Chan */ final class ImmutableEnumMap<K, V> extends ForwardingImmutableMap<K, V> { static <K, V> ImmutableMap<K, V> asImmutable(Map<K, V> map) { for (Entry<K, V> entry : checkNotNull(map).entrySet()) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java
} catch (UnsupportedOperationException e) { return; } if (map.size() < 2 || !supportsPut) { return; } Iterator<Entry<K, V>> iterator = map.entrySet().iterator(); Entry<K, V> firstEntry = iterator.next(); Entry<K, V> secondEntry = iterator.next(); K key = secondEntry.getKey(); SortedMap<K, V> subMap = map.tailMap(key); V value = getValueNotInPopulatedMap();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 17 20:00:30 GMT 2024 - 3.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java
} catch (UnsupportedOperationException e) { return; } if (map.size() < 2 || !supportsPut) { return; } Iterator<Entry<K, V>> iterator = map.entrySet().iterator(); Entry<K, V> firstEntry = iterator.next(); Entry<K, V> secondEntry = iterator.next(); K key = secondEntry.getKey(); SortedMap<K, V> subMap = map.tailMap(key); V value = getValueNotInPopulatedMap();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 17 20:00:30 GMT 2024 - 3.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TablesTest.java
public void testImmutableEntrySerialization() { Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a'); SerializableTester.reserializeAndAssert(entry); } public void testImmutableEntryToString() { Cell<String, Integer, Character> entry = immutableCell("foo", 1, 'a'); assertThat(entry.toString()).isEqualTo("(foo,1)=a");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.1K bytes - Click Count (0)