- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,266 for maxs (0.07 sec)
-
guava-tests/test/com/google/common/collect/MapsTest.java
assertEquals(ImmutableSortedMap.of(2, 0), Maps.subMap(map, Range.open(0, 4))); assertEquals(ImmutableSortedMap.of(4, 0), Maps.subMap(map, Range.open(2, 6))); assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.open(3, 7))); assertEquals(empty, Maps.subMap(map, Range.open(20, 30))); assertEquals(map, Maps.subMap(map, Range.openClosed(0, 12)));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 67.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsCollectionTest.java
Map<String, String> map = Maps.newHashMap(); putEntries(map, entries); map.putAll(ENTRIES_TO_FILTER); map = Maps.filterEntries(map, FILTER_ENTRIES_1); return Maps.filterEntries(map, FILTER_ENTRIES_2); } }) .named("Maps.filterEntries[Maps.filterEntries[Map, Predicate], Predicate]")
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 20:09:59 UTC 2024 - 32.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
.containsExactly(Maps.immutableEntry("bar", 2), Maps.immutableEntry("quux", 1)) .inOrder(); } public void testInverseInsertionOrderAfterInverse() { BiMap<String, Integer> map = HashBiMap.create(); map.put("bar", 2); map.put("quux", 1); assertThat(map.inverse().entrySet()) .containsExactly(Maps.immutableEntry(2, "bar"), Maps.immutableEntry(1, "quux"))
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 8.4K bytes - Viewed (0) -
src/maps/example_test.go
// license that can be found in the LICENSE file. package maps_test import ( "fmt" "maps" "strings" ) func ExampleClone() { m1 := map[string]int{ "key": 1, } m2 := maps.Clone(m1) m2["key"] = 100 fmt.Println(m1["key"]) fmt.Println(m2["key"]) m3 := map[string][]int{ "key": {1, 2, 3}, } m4 := maps.Clone(m3) fmt.Println(m4["key"][0]) m4["key"][0] = 100 fmt.Println(m3["key"][0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:21:56 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/xposmap.go
func newXposmap(x map[int]lineRange) *xposmap { maps := make(map[int32]*biasedSparseMap) for i, p := range x { maps[int32(i)] = newBiasedSparseMap(int(p.first), int(p.last)) } return &xposmap{maps: maps, lastIndex: -1} // zero for the rest is okay } // clear removes data from the map but leaves the sparse skeleton. func (m *xposmap) clear() { for _, l := range m.maps { if l != nil { l.clear() } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:48:16 UTC 2019 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
assertEquals(Maps.immutableEntry("foo", 5), entryIterator.next()); assertEquals(Maps.immutableEntry("bar", 4), entryIterator.next()); assertEquals(Maps.immutableEntry("foo", 3), entryIterator.next()); assertEquals(Maps.immutableEntry("cow", 2), entryIterator.next()); assertEquals(Maps.immutableEntry("bar", 1), entryIterator.next());
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 18.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractTable.java
Map<C, V> row = Maps.safeGet(rowMap(), rowKey); return row != null && Maps.safeContainsKey(row, columnKey); } @Override @CheckForNull public V get(@CheckForNull Object rowKey, @CheckForNull Object columnKey) { Map<C, V> row = Maps.safeGet(rowMap(), rowKey); return (row == null) ? null : Maps.safeGet(row, columnKey); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jul 15 15:41:16 UTC 2021 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java
abstract Map<String, Integer> createUnfiltered(); public void testFilteredKeysIllegalPut() { Map<String, Integer> unfiltered = createUnfiltered(); Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3); filtered.put("a", 1); filtered.put("b", 2); assertEquals(ImmutableMap.of("a", 1, "b", 2), filtered); try { filtered.put("yyy", 3); fail();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 7.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MapDifference.java
/** * An object representing the differences between two maps. * * @author Kevin Bourrillion * @since 2.0 */ @DoNotMock("Use Maps.difference") @GwtCompatible @ElementTypesAreNonnullByDefault public interface MapDifference<K extends @Nullable Object, V extends @Nullable Object> { /** * Returns {@code true} if there are no differences between the two maps; that is, if the maps are * equal. */ boolean areEqual();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Aug 04 13:28:27 UTC 2021 - 3.5K bytes - Viewed (0) -
doc/next/6-stdlib/3-iter.md
sub-slices of up to n elements of a slice. The [maps] package adds several functions that work with iterators: - [All](/pkg/maps#All) returns an iterator over key-value pairs from m. - [Keys](/pkg/maps#Keys) returns an iterator over keys in m. - [Values](/pkg/maps#Values) returns an iterator over values in m. - [Insert](/pkg/maps#Insert) adds the key-value pairs from seq to m.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:13 UTC 2024 - 1.4K bytes - Viewed (0)