Class JmxUtils


  • public final class JmxUtils
    extends Object
    • Method Detail

      • convertToUnmodifiableStringMap

        public static Map<String,​String> convertToUnmodifiableStringMap​(Map<String,​Object> map)
        Converts the map, so that it only contains String values. All non String values will be removed (null values included).

        The returned map is not modifiable.

        If the input map is null, null is also returned.

        Parameters:
        map - The map to be converted. May be null.
        Returns:
        An unmodifiable map containing only String values from the input map, or null if input map was null.
      • convertToStringMap

        public static Map<String,​String> convertToStringMap​(Map<String,​Object> map)
        Converts the map, so that it only contains String values. All non String values will be removed (null values included).

        The returned map is modifiable.

        If the input map is null, null is also returned.

        Parameters:
        map - The map to be converted. May be null.
        Returns:
        An unmodifiable map containing only String values from the input map, or null if input map was null.