Class ConvertToMapAccessor
java.lang.Object
io.prometheus.jmx.common.configuration.ConvertToMapAccessor
- All Implemented Interfaces:
Function<Object,YamlMapAccessor>
Class to convert an Object to a Map, throwing a RuntimeException from the Supplier if there is a
ClassCastException
-
Constructor Details
-
ConvertToMapAccessor
Constructor- Parameters:
supplier- supplier
-
-
Method Details
-
apply
Method to apply a function- Specified by:
applyin interfaceFunction<Object,YamlMapAccessor> - Parameters:
value- value- Returns:
- the return value
-