Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 765 for nmap (0.18 sec)

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

       * Returns a new bimap with the same mappings as the specified map. If the specified map is an
       * {@code EnumBiMap}, the new bimap has the same types as the provided map. Otherwise, the
       * specified map must contain at least one mapping, in order to determine the key and value types.
       *
       * @param map the map whose mappings are to be placed in this map
       * @throws IllegalArgumentException if map is not an {@code EnumBiMap} instance and contains no
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

        IntHolder holderB = new IntHolder(2);
        Map<String, IntHolder> map = ImmutableSortedMap.of("a", holderA, "b", holderB);
        holderA.value = 3;
        assertTrue(map.entrySet().contains(Maps.immutableEntry("a", new IntHolder(3))));
        Map<String, Integer> intMap = ImmutableSortedMap.of("a", 3, "b", 2);
        assertEquals(intMap.hashCode(), map.entrySet().hashCode());
        assertEquals(intMap.hashCode(), map.hashCode());
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
        keyToRemove = map.keySet().iterator().next();
        if (supportsRemove) {
          int initialSize = map.size();
          map.get(keyToRemove);
          map.remove(keyToRemove);
          // This line doesn't hold - see the Javadoc comments above.
          // assertEquals(expectedValue, oldValue);
          assertFalse(map.containsKey(keyToRemove));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMapValues.java

      private final ImmutableMap<K, V> map;
    
      ImmutableMapValues(ImmutableMap<K, V> map) {
        this.map = map;
      }
    
      @Override
      public int size() {
        return map.size();
      }
    
      @Override
      public UnmodifiableIterator<V> iterator() {
        return new UnmodifiableIterator<V>() {
          final UnmodifiableIterator<Entry<K, V>> entryItr = map.entrySet().iterator();
    
          @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        ImmutableTypeToInstanceMap<Number> map =
            ImmutableTypeToInstanceMap.<Number>builder()
                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(Integer.class));
        assertEquals(0, (int) map.getInstance(TypeToken.of(Integer.class)));
        assertEquals(1, (int) map.getInstance(int.class));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMapValues.java

      Object writeReplace() {
        return new SerializedForm<V>(map);
      }
    
      @GwtIncompatible // serialization
      @J2ktIncompatible
      private static class SerializedForm<V> implements Serializable {
        final ImmutableMap<?, V> map;
    
        SerializedForm(ImmutableMap<?, V> map) {
          this.map = map;
        }
    
        Object readResolve() {
          return map.values();
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

        COPY_OF_MAP {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            Map<Object, Object> sourceMap = new LinkedHashMap<>();
            for (Object k : keys) {
              if (sourceMap.put(k, "dummy value") != null) {
                throw new UnsupportedOperationException("duplicate key");
              }
            }
            return ImmutableMap.copyOf(sourceMap);
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForMapMultimapAsMapImplementsMapTest.java

      }
    
      @Override
      protected Map<String, Collection<Integer>> makeEmptyMap() {
        Map<String, Integer> map = Maps.newHashMap();
        return Multimaps.forMap(map).asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("cow", 3);
        return Multimaps.forMap(map).asMap();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. 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 = Maps.newHashMap();
          for (Entry<AnEnum, String> entry : entries) {
            // checkArgument(!map.containsKey(entry.getKey()));
            map.put(entry.getKey(), entry.getValue());
          }
          return Maps.immutableEnumMap(map);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java

      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
       *
       * @deprecated unsupported operation
       * @throws UnsupportedOperationException always
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public void putAll(Map<? extends TypeToken<? extends B>, ? extends B> map) {
        throw new UnsupportedOperationException();
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 20:46:24 GMT 2022
    - 5.6K bytes
    - Viewed (0)
Back to top