Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 680 for maps (0.02 seconds)

  1. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

    import java.util.NoSuchElementException;
    import java.util.SortedMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A sorted map which forwards all its method calls to another sorted map. Subclasses should
     * override one or more methods to modify the behavior of the backing sorted map as desired per the
     * <a href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 16:28:01 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

    import com.google.common.base.Predicate;
    import com.google.common.collect.HashMultimap;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Multimap;
    import com.google.common.reflect.ClassPath;
    import com.google.common.testing.NullPointerTester.Visibility;
    import com.google.j2objc.annotations.J2ObjCIncompatible;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/HashBiMapTest.java

        map.put("bar", 2);
        map.put("quux", 3);
    
        map.remove("bar");
        assertThat(map.entrySet())
            .containsExactly(immutableEntry("foo", 1), immutableEntry("quux", 3))
            .inOrder();
      }
    
      public void testInsertionOrderAfterRemoveLast() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
        map.remove("quux");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        @Override
        protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
          Map<AnEnum, String> map = new HashMap<>();
          for (Entry<AnEnum, String> entry : entries) {
            checkNotNull(entry);
            map.put(entry.getKey(), entry.getValue());
          }
          return immutableEnumMap(map);
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/net/InetAddresses.java

        return hextetsToIPv6String(hextets) + scopeWithDelimiter((Inet6Address) ip);
      }
    
      private static String scopeWithDelimiter(Inet6Address ip) {
        // getHostAddress on android sometimes maps the scope ID to an invalid interface name; if the
        // mapped interface isn't present, fallback to use the scope ID (which has no validation against
        // present interfaces)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        Map<Integer, String> map = CompactLinkedHashMap.create();
        map.put(1, "a");
        map.put(4, "b");
        map.put(3, "d");
        map.put(2, "c");
        map.remove(4);
        testHasMapEntriesInOrder(map, 1, "a", 3, "d", 2, "c");
      }
    
      public void testInsertionOrderAfterRemoveLastEntry() {
        Map<Integer, String> map = CompactLinkedHashMap.create();
        map.put(1, "a");
        map.put(4, "b");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Maps.immutableEntry;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.truth.Truth.assertWithMessage;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  8. cmd/object-handlers.go

    	}
    	// Store the preserved compression metadata.
    	maps.Copy(srcInfo.UserDefined, compressMetadata)
    
    	// We need to preserve the encryption headers set in EncryptRequest,
    	// so we do not want to override them, copy them instead.
    	maps.Copy(srcInfo.UserDefined, encMetadata)
    
    	// Ensure that metadata does not contain sensitive information
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 120.6K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

      }
    
      private void testRangesByLowerBounds(
          TreeRangeSet<Integer> rangeSet, Iterable<Range<Integer>> expectedRanges) {
        NavigableMap<Cut<Integer>, Range<Integer>> expectedRangesByLowerBound = Maps.newTreeMap();
        for (Range<Integer> range : expectedRanges) {
          expectedRangesByLowerBound.put(range.lowerBound, range);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

      // TODO(fry): Look into Maps.KeySet and Maps.Values, which can ideally be reused here but are
      // currently only package visible.
      abstract class AbstractCacheSet<T> extends AbstractSet<T> {
        final ConcurrentMap<?, ?> map;
    
        AbstractCacheSet(ConcurrentMap<?, ?> map) {
          this.map = map;
        }
    
        @Override
        public int size() {
          return map.size();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 21.6K bytes
    - Click Count (0)
Back to Top