- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 310 for Entry (0.07 seconds)
-
guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
builder.add(mapEntry(entry.getKey(), v)); } map.put(entry.getKey(), entry.getValue()); } Iterable<Entry<K, V>> ordered = multimapGenerator.order(builder); LinkedHashMap<K, Collection<V>> orderedMap = new LinkedHashMap<>(); for (Entry<K, V> entry : ordered) { orderedMap.put(entry.getKey(), map.get(entry.getKey())); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 26.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java
public void testToString() { assertThat(entry("foo", 1).toString()).isEqualTo("foo=1"); } public void testToStringNull() { assertThat(entry(NK, 1).toString()).isEqualTo("null=1"); assertThat(entry("foo", NV).toString()).isEqualTo("foo=null"); assertThat(entry(NK, NV).toString()).isEqualTo("null=null"); } public void testEquals() { Entry<String, Integer> foo1 = entry("foo", 1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.2K bytes - Click Count (0) -
guava/src/com/google/common/cache/ReferenceEntry.java
void setAccessTime(long time); /** Returns the next entry in the access queue. */ ReferenceEntry<K, V> getNextInAccessQueue(); /** Sets the next entry in the access queue. */ void setNextInAccessQueue(ReferenceEntry<K, V> next); /** Returns the previous entry in the access queue. */ ReferenceEntry<K, V> getPreviousInAccessQueue(); /** Sets the previous entry in the access queue. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 3.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/MutableClassToInstanceMap.java
*/ private static <B extends @Nullable Object> Entry<Class<? extends @NonNull B>, B> checkedEntry( Entry<Class<? extends @NonNull B>, B> entry) { return new ForwardingMapEntry<Class<? extends @NonNull B>, B>() { @Override protected Entry<Class<? extends @NonNull B>, B> delegate() { return entry; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 7.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableMultiset.java
int index = 0; int hashCode = 0; long size = 0; for (Entry<? extends E> entryWithWildcard : entries) { @SuppressWarnings("unchecked") // safe because we only read from it Entry<E> entry = (Entry<E>) entryWithWildcard; E element = checkNotNull(entry.getElement()); int count = entry.getCount(); int hash = element.hashCode(); int bucket = Hashing.smear(hash) & mask;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 6.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMapEntrySet.java
return map().size(); } @Override public boolean contains(@Nullable Object object) { if (object instanceof Entry) { Entry<?, ?> entry = (Entry<?, ?>) object; V value = map().get(entry.getKey()); return value != null && value.equals(entry.getValue()); } return false; } @Override boolean isPartialView() { return map().isPartialView(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/LocalCache.java
void removeCollectedEntry(ReferenceEntry<K, V> entry) { enqueueNotification( entry.getKey(), entry.getHash(), entry.getValueReference().get(), entry.getValueReference().getWeight(), RemovalCause.COLLECTED); writeQueue.remove(entry); accessQueue.remove(entry); } /** Removes an entry whose key has been garbage collected. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 143.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/ArrayMap.java
} /** * Replaces the value of the entry with a new value. * * @param entry * the entry * @param value * the new value for the entry * @return the previous value of the entry */ protected V swapValue(final Entry<K, V> entry, final V value) { final V old = entry.value; entry.value = value; return old; }Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 20.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java
Iterator<Entry<String, Collection<Integer>>> iterator = multimap.asMap().entrySet().iterator(); Entry<String, Collection<Integer>> entry = iterator.next(); assertThat(entry.getKey()).isEqualTo("foo"); assertThat(entry.getValue()).containsExactly(1, 3, 7); entry = iterator.next(); assertThat(entry.getKey()).isEqualTo("google"); assertThat(entry.getValue()).containsExactly(2, 6);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.5K bytes - Click Count (0) -
.pre-commit-config.yaml
- repo: local hooks: - id: local-ruff-check name: ruff check entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix require_serial: true language: unsupported types: [python] - id: local-ruff-format name: ruff format entry: uv run ruff format --force-exclude --exit-non-zero-on-format require_serial: trueCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Apr 03 12:06:36 GMT 2026 - 2.6K bytes - Click Count (1)