public class CounterUtils extends Object
Counter,
CounterGroup,
Counters| Constructor and Description |
|---|
CounterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Counters |
createFromJsonString(String json)
通过JSON字符串创建
Counters对象
字符串异常时会抛出 RuntimeException |
static String |
toJsonString(Counters counters)
将
Counters 对象转化成一个JSON字符串 |
public static String toJsonString(Counters counters)
Counters 对象转化成一个JSON字符串counters - 需要转化的 Counters 对象public static Counters createFromJsonString(String json)
Counters对象
字符串异常时会抛出 RuntimeExceptionjson - JSON字符串Counters对象toJsonString(Counters)Copyright © 2021 Alibaba Cloud Computing. All rights reserved.