@InterfaceAudience.Private public class CountersStrings extends Object
Constructor and Description |
---|
CountersStrings() |
Modifier and Type | Method and Description |
---|---|
static <C extends Counter,G extends CounterGroupBase<C>,T extends AbstractCounters<C,G>> |
parseEscapedCompactString(String compactString,
T counters)
Parse a pre 0.21 counters string into a counter object.
|
static String |
toEscapedCompactString(Counter counter)
Make the pre 0.21 counter string (for e.g.
|
static <G extends CounterGroupBase<?>> |
toEscapedCompactString(G group)
Make the 0.21 counter group string.
|
static <C extends Counter,G extends CounterGroupBase<C>,T extends AbstractCounters<C,G>> |
toEscapedCompactString(T counters)
Make the pre 0.21 counters string
|
public static String toEscapedCompactString(Counter counter)
counter
- to stringifypublic static <G extends CounterGroupBase<?>> String toEscapedCompactString(G group)
G
- type of the groupgroup
- to stringifypublic static <C extends Counter,G extends CounterGroupBase<C>,T extends AbstractCounters<C,G>> String toEscapedCompactString(T counters)
C
- type of the counterG
- type of the counter groupT
- type of the counters objectcounters
- the object to stringifypublic static <C extends Counter,G extends CounterGroupBase<C>,T extends AbstractCounters<C,G>> T parseEscapedCompactString(String compactString, T counters) throws ParseException
C
- type of the counterG
- type of the counter groupT
- type of the counters objectcompactString
- to parsecounters
- an empty counters object to hold the resultParseException
Copyright © 2020 Apache Software Foundation. All rights reserved.