Package com.mirth.connect.userutil
Class MapBuilder
java.lang.Object
com.mirth.connect.userutil.MapBuilder
- All Implemented Interfaces:
Map
Convenience class to allow fluent building of maps.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds an entry to the map using theput(java.lang.Object, java.lang.Object)method, and returns this builder.voidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) Set<?>entrySet()booleaninthashCode()booleanisEmpty()Set<?>keySet()voidintsize()toString()Collection<?>values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
add
Adds an entry to the map using theput(java.lang.Object, java.lang.Object)method, and returns this builder.- Parameters:
key- key with which the specified value is to be associatedvalue- value to be associated with the specified key- Returns:
- This MapBuilder instance.
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap
-
containsValue
- Specified by:
containsValuein interfaceMap
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
toString
-