Returns an empty map (immutable). This map is serializable.
!(p)This example illustrates the type-safe way to obtain an empty map:
!(pre)
Map<string, Date> s = Collections.emptyMap();
!(/pre)
@implNote Implementations of this method need not create a separate
{@code Map} object for each call. Using this method is likely to have
comparable cost to using the like-named field. (Unlike this method, the
field does not provide type safety.)
@param (K) the class of the map keys
@param (V) the class of the map values
@return an empty map
@see #EMPTY_MAP
Returns an empty map (immutable). This map is serializable.
!(p)This example illustrates the type-safe way to obtain an empty map: !(pre) Map<string, Date> s = Collections.emptyMap(); !(/pre) @implNote Implementations of this method need not create a separate {@code Map} object for each call. Using this method is likely to have comparable cost to using the like-named field. (Unlike this method, the field does not provide type safety.)
@param (K) the class of the map keys @param (V) the class of the map values @return an empty map @see #EMPTY_MAP