@InterfaceAudience.Private
public class CountersStrings
extends java.lang.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(java.lang.String compactString,
T counters)
Parse a pre 0.21 counters string into a counter object.
|
static java.lang.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 java.lang.String toEscapedCompactString(Counter counter)
counter - to stringifypublic static <G extends CounterGroupBase<?>> java.lang.String toEscapedCompactString(G group)
G - type of the groupgroup - to stringifypublic static <C extends Counter,G extends CounterGroupBase<C>,T extends AbstractCounters<C,G>> java.lang.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(java.lang.String compactString, T counters) throws java.text.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 resultjava.text.ParseExceptionCopyright © 2009 The Apache Software Foundation