From 8a80c921253c3adb9fa2776ac7a3ea68c9512665 Mon Sep 17 00:00:00 2001 From: viciscat <51047087+viciscat@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:02:48 +0200 Subject: [PATCH] implement #ofEntries and #entry --- drv/Map.drv | 35 +++++++++++++++++++ .../objects/Object2ObjectMapTest.java | 27 ++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 test/it/unimi/dsi/fastutil/objects/Object2ObjectMapTest.java diff --git a/drv/Map.drv b/drv/Map.drv index 4e002790..e7810253 100644 --- a/drv/Map.drv +++ b/drv/Map.drv @@ -823,6 +823,41 @@ public interface MAP KEY_VALUE_GENERIC extends FUNCTION KEY_VALUE_GENERIC, Map Object2ObjectMap.ofEntries( + Object2ObjectMap.entry("dupe", "foo"), + Object2ObjectMap.entry("not a dupe", "bar"), + Object2ObjectMap.entry("dupe", "exception") + ) + ); + } + + +}