diff --git a/maps/src/main/java/com/georgev22/library/maps/ObjectMap.java b/maps/src/main/java/com/georgev22/library/maps/ObjectMap.java index b7ac20a..0005cae 100644 --- a/maps/src/main/java/com/georgev22/library/maps/ObjectMap.java +++ b/maps/src/main/java/com/georgev22/library/maps/ObjectMap.java @@ -15,8 +15,8 @@ public interface ObjectMap extends Map { * @return a new empty {@link LinkedObjectMap} instance. */ @Contract(" -> new") - static @NotNull LinkedObjectMap newLinkedObjectMap() { - return new LinkedObjectMap(); + static @NotNull LinkedObjectMap newLinkedObjectMap() { + return new LinkedObjectMap<>(); } /** @@ -25,8 +25,8 @@ public interface ObjectMap extends Map { * @return a new empty {@link ConcurrentObjectMap} instance. */ @Contract(" -> new") - static @NotNull ConcurrentObjectMap newConcurrentObjectMap() { - return new ConcurrentObjectMap(); + static @NotNull ConcurrentObjectMap newConcurrentObjectMap() { + return new ConcurrentObjectMap<>(); } /** @@ -35,8 +35,8 @@ public interface ObjectMap extends Map { * @return a new empty {@link HashObjectMap} instance. */ @Contract(" -> new") - static @NotNull HashObjectMap newHashObjectMap() { - return new HashObjectMap(); + static @NotNull HashObjectMap newHashObjectMap() { + return new HashObjectMap<>(); } /** @@ -45,8 +45,8 @@ public interface ObjectMap extends Map { * @return a new empty {@link TreeObjectMap} instance. */ @Contract(" -> new") - static @NotNull TreeObjectMap newTreeObjectMap() { - return new TreeObjectMap(); + static @NotNull TreeObjectMap newTreeObjectMap() { + return new TreeObjectMap<>(); } /** @@ -56,8 +56,8 @@ public interface ObjectMap extends Map { * @return a new {@link LinkedObjectMap#LinkedObjectMap(ObjectMap)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull LinkedObjectMap newLinkedObjectMap(ObjectMap map) { - return new LinkedObjectMap(map); + static @NotNull LinkedObjectMap newLinkedObjectMap(ObjectMap map) { + return new LinkedObjectMap<>(map); } /** @@ -67,8 +67,8 @@ public interface ObjectMap extends Map { * @return a new {@link LinkedObjectMap#LinkedObjectMap(Map)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull LinkedObjectMap newLinkedObjectMap(Map map) { - return new LinkedObjectMap(map); + static @NotNull LinkedObjectMap newLinkedObjectMap(Map map) { + return new LinkedObjectMap<>(map); } /** @@ -78,8 +78,8 @@ public interface ObjectMap extends Map { * @return a new {@link ConcurrentObjectMap#ConcurrentObjectMap(ObjectMap)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull ConcurrentObjectMap newConcurrentObjectMap(ObjectMap map) { - return new ConcurrentObjectMap(map); + static @NotNull ConcurrentObjectMap newConcurrentObjectMap(ObjectMap map) { + return new ConcurrentObjectMap<>(map); } /** @@ -89,8 +89,8 @@ public interface ObjectMap extends Map { * @return a new {@link ConcurrentObjectMap#ConcurrentObjectMap(Map)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull ConcurrentObjectMap newConcurrentObjectMap(Map map) { - return new ConcurrentObjectMap(map); + static @NotNull ConcurrentObjectMap newConcurrentObjectMap(Map map) { + return new ConcurrentObjectMap<>(map); } /** @@ -100,8 +100,8 @@ public interface ObjectMap extends Map { * @return a new {@link HashObjectMap#HashObjectMap(ObjectMap)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull HashObjectMap newHashObjectMap(ObjectMap map) { - return new HashObjectMap(map); + static @NotNull HashObjectMap newHashObjectMap(ObjectMap map) { + return new HashObjectMap<>(map); } /** @@ -111,8 +111,8 @@ public interface ObjectMap extends Map { * @return a new {@link HashObjectMap#HashObjectMap(Map)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull HashObjectMap newHashObjectMap(Map map) { - return new HashObjectMap(map); + static @NotNull HashObjectMap newHashObjectMap(Map map) { + return new HashObjectMap<>(map); } /** @@ -122,8 +122,8 @@ public interface ObjectMap extends Map { * @return a new {@link TreeObjectMap#TreeObjectMap(ObjectMap)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull TreeObjectMap newTreeObjectMap(ObjectMap map) { - return new TreeObjectMap(map); + static @NotNull TreeObjectMap newTreeObjectMap(ObjectMap map) { + return new TreeObjectMap<>(map); } /** @@ -133,8 +133,8 @@ public interface ObjectMap extends Map { * @return a new {@link TreeObjectMap#TreeObjectMap(Map)} initialized with the mappings from {@code map} */ @Contract("_ -> new") - static @NotNull TreeObjectMap newTreeObjectMap(Map map) { - return new TreeObjectMap(map); + static @NotNull TreeObjectMap newTreeObjectMap(Map map) { + return new TreeObjectMap<>(map); }