BAEKL-5351: Added method for empty sorted map

This commit is contained in:
Mayank Agarwal 2022-02-05 11:56:54 +05:30
parent 2e8381fbd7
commit 7f88e21e92
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.NavigableMap;
import java.util.SortedMap;
import java.util.TreeMap;
public class EmptyMapInitializer {
@ -41,6 +42,11 @@ public class EmptyMapInitializer {
return emptyMapUsingGuava;
}
public SortedMap<String, String> createEmptySortedMap() {
SortedMap<String, String> sortedMap = Collections.emptySortedMap();
return sortedMap;
}
public NavigableMap<String, String> createEmptyNavigableMap() {
NavigableMap<String, String> navigableMap = Collections.emptyNavigableMap();
return navigableMap;