Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 82 for newHashMap (0.18 sec)

  1. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                    new TestStringMapGenerator() {
                      @Override
                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = Maps.newHashMap();
                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
                        return Maps.filterKeys(map, FILTER_KEYS);
                      }
                    })
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/HashMultiset.java

      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        int distinctElements = Serialization.readCount(stream);
        setBackingMap(Maps.<E, Count>newHashMap());
        Serialization.populateMultiset(this, stream, distinctElements);
      }
    
      @GwtIncompatible // Not needed in emulated source.
      @J2ktIncompatible
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      @CollectionSize.Require(SEVERAL)
      public void testEquals() {
        resetContainer(
            Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3()));
        Map<K, Collection<V>> expected = Maps.newHashMap();
        expected.put(k0(), Sets.newHashSet(v0(), v3()));
        expected.put(k1(), Sets.newHashSet(v0()));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap()).testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/net/URLUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.net;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    import static org.codelibs.core.collection.CollectionsUtil.newHashMap;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.File;
    import java.io.IOException;
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                    new TestStringMapGenerator() {
                      @Override
                      protected Map<String, String> create(Entry<String, String>[] entries) {
                        Map<String, String> map = Maps.newHashMap();
                        putEntries(map, entries);
                        map.putAll(ENTRIES_TO_FILTER);
                        return Maps.filterKeys(map, FILTER_KEYS);
                      }
                    })
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

      public static class ImmutableEnumMapGenerator extends TestEnumMapGenerator {
        @Override
        protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
          Map<AnEnum, String> map = Maps.newHashMap();
          for (Entry<AnEnum, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return Maps.immutableEnumMap(map);
        }
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

      public static class ImmutableEnumMapGenerator extends TestEnumMapGenerator {
        @Override
        protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
          Map<AnEnum, String> map = Maps.newHashMap();
          for (Entry<AnEnum, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return Maps.immutableEnumMap(map);
        }
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        assertTrue(multiset.contains("a"));
      }
    
      private static class NoRemoveMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
          implements Serializable {
        final Map<E, Integer> backingMap = Maps.newHashMap();
    
        @Override
        public int size() {
          return Multisets.linearTimeSizeImpl(this);
        }
    
        @Override
        public void clear() {
          throw new UnsupportedOperationException();
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        assertTrue(multiset.contains("a"));
      }
    
      private static class NoRemoveMultiset<E extends @Nullable Object> extends AbstractMultiset<E>
          implements Serializable {
        final Map<E, Integer> backingMap = Maps.newHashMap();
    
        @Override
        public int size() {
          return Multisets.linearTimeSizeImpl(this);
        }
    
        @Override
        public void clear() {
          throw new UnsupportedOperationException();
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/log/Logger.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.log;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    import static org.codelibs.core.collection.CollectionsUtil.newHashMap;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.util.Map;
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top