- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,016 for entri (0.16 sec)
-
guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java
private static Map<String, String> toHashMap(Entry<String, String>[] entries) { return populate(new HashMap<String, String>(), entries); } // TODO: call conversion constructors or factory methods instead of using // populate() on an empty map private static <T, M extends Map<T, String>> M populate(M map, Entry<T, String>[] entries) { for (Entry<T, String> entry : entries) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 21.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedMultiset.java
*/ @CheckForNull protected Entry<E> standardPollFirstEntry() { Iterator<Entry<E>> entryIterator = entrySet().iterator(); if (!entryIterator.hasNext()) { return null; } Entry<E> entry = entryIterator.next(); entry = Multisets.immutableEntry(entry.getElement(), entry.getCount()); entryIterator.remove(); return entry; } @Override @CheckForNull
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri May 12 15:26:39 GMT 2023 - 8.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredMultimapValues.java
@Override public boolean remove(@CheckForNull Object o) { Predicate<? super Entry<K, V>> entryPredicate = multimap.entryPredicate(); for (Iterator<Entry<K, V>> unfilteredItr = multimap.unfiltered().entries().iterator(); unfilteredItr.hasNext(); ) { Entry<K, V> entry = unfilteredItr.next(); if (entryPredicate.apply(entry) && Objects.equal(entry.getValue(), o)) { unfilteredItr.remove(); return true; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 15 21:08:00 GMT 2021 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedBiMapTest.java
@Override protected BiMap<String, String> create(Entry<String, String>[] entries) { Object mutex = new Object(); BiMap<String, String> result = HashBiMap.create(); for (Entry<String, String> entry : entries) { checkArgument(!result.containsKey(entry.getKey())); result.put(entry.getKey(), entry.getValue()); } return Maps.synchronizedBiMap(result); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredEntryMultimap.java
} boolean removeEntriesIf(Predicate<? super Entry<K, Collection<V>>> predicate) { Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator(); boolean changed = false; while (entryIterator.hasNext()) { Entry<K, Collection<V>> entry = entryIterator.next(); K key = entry.getKey(); Collection<V> collection = filterCollection(entry.getValue(), new ValuePredicate(key));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 24 19:38:27 GMT 2024 - 11.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
@Weak private final transient ImmutableSetMultimap<K, V> multimap; EntrySet(ImmutableSetMultimap<K, V> multimap) { this.multimap = multimap; } @Override public boolean contains(@CheckForNull Object object) { if (object instanceof Entry) { Entry<?, ?> entry = (Entry<?, ?>) object;
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 23.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java
@Override protected SortedMap<String, String> create(Entry<String, String>[] entries) { NavigableMap<String, String> map = new SafeTreeMap<>(); for (Entry<String, String> entry : entries) { map.put(entry.getKey(), entry.getValue()); } return new StandardImplForwardingNavigableMap<>(map);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 9.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java
result.inverse = this; } return result; } @WeakOuter private final class InverseEntries extends ImmutableList<Entry<V, K>> { @Override public Entry<V, K> get(int index) { Entry<K, V> entry = entries.get(index); return Maps.immutableEntry(entry.getValue(), entry.getKey()); } @Override boolean isPartialView() { return false; } @Override
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 4.6K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapRetrievalCache.java
// Store a local reference to the cache entry. If the backing map is immutable, this, // in combination with immutable cache entries, will ensure a thread-safe cache. CacheEntry<K, V> entry; // Check cache. We use == on purpose because it's cheaper and a cache miss is ok. entry = cacheEntry1; if (entry != null && entry.key == key) { return entry.value; } entry = cacheEntry2;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 26 17:43:39 GMT 2021 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
* * <p>Invoking {@link Multiset.Entry#getCount} on an entry in the returned set always returns the * current count of that element in the multiset, as opposed to the count at the time the entry * was retrieved. */ @Override public Set<Multiset.Entry<E>> entrySet() { return super.entrySet(); } @Override Iterator<E> elementIterator() {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Mar 06 16:06:58 GMT 2023 - 10.4K bytes - Viewed (0)