- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for NewHashMap (2.5 sec)
-
test/typeparam/issue48716.dir/main.go
dst.Add(t) return true }) return } type MapSet[T any] struct { m a.Map[T, struct{}] } func HashSet[T comparable](capacity int) MapSet[T] { return FromMap[T](a.NewHashMap[T, struct{}](capacity)) } func FromMap[T any](m a.Map[T, struct{}]) MapSet[T] { return MapSet[T]{ m: m, } } func (s MapSet[T]) Add(t T) { s.m.Put(t, struct{}{}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 1021 bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/FileTransformerTest.java
Map<String, String> featureMap = newHashMap(); featureMap.put("http://xml.org/sax/features/namespaces", "false"); fileTransformer.setFeatureMap(featureMap); Map<String, String> propertyMap = newHashMap(); fileTransformer.setPropertyMap(propertyMap); Map<String, String> childUrlRuleMap = newHashMap(); childUrlRuleMap.put("//A", "href");
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 7.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/AnnotationUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.lang; import static org.codelibs.core.collection.CollectionsUtil.newHashMap; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.lang.annotation.Annotation; import java.util.Map; import org.codelibs.core.beans.BeanDesc;
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/DefaultMavenRepositoryContentDescriptor.java
} if (getExcludeSpecs() != null) { copy.setExcludeSpecs(Sets.newHashSet(getExcludeSpecs())); } if (getRequiredAttributes() != null) { copy.setRequiredAttributes(Maps.newHashMap(getRequiredAttributes())); } return copy; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.4K bytes - Viewed (0) -
test/typeparam/issue48716.dir/a.go
return Pair[L, R]{L: l, R: r} } type Map[K, V any] interface { Put(K, V) Len() int Iterate(func(Pair[K, V]) bool) } type HashMap[K comparable, V any] struct { m map[K]V } func NewHashMap[K comparable, V any](capacity int) HashMap[K, V] { var m map[K]V if capacity >= 1 { m = make(map[K]V, capacity) } else { m = map[K]V{} } return HashMap[K, V]{m: m} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 12 20:09:58 UTC 2021 - 861 bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/DefaultProcessForkOptions.java
} return actual; } @Override public void setEnvironment(Map<String, ?> environmentVariables) { environment = Maps.newHashMap(environmentVariables); } @Override public ProcessForkOptions environment(String name, Object value) { getEnvironment().put(name, value); return this; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 3.6K bytes - Viewed (0) -
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;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
* governing permissions and limitations under the License. */ package org.codelibs.core.io; 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.Enumeration; import java.util.Locale;
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6K bytes - Viewed (0) -
testing/architecture-test/src/test/java/org/gradle/architecture/test/GuavaCollectionFactoryUsageTest.java
noClasses() .should() .callMethod(com.google.common.collect.Maps.class, "newConcurrentMap") .orShould() .callMethod(com.google.common.collect.Maps.class, "newHashMap") .orShould() .callMethod(com.google.common.collect.Maps.class, "newLinkedHashMap") .orShould() .callMethod(com.google.common.collect.Maps.class, "newIdentityHashMap")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.3K bytes - Viewed (0) -
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;
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 7.3K bytes - Viewed (0)