| Modifier and Type | Method and Description |
|---|---|
static void |
appendElapsed(StringBuilder buf,
long elapsedNanos)
Appends the human-readable representation of the duration given as
elapsed to the specified
StringBuilder. |
static void |
appendElapsed(StringBuilder buf,
long startTimeNanos,
long endTimeNanos)
Appends the human-readable representation of the duration between the specified
startTimeNanos
and endTimeNanos to the specified StringBuilder. |
static void |
appendElapsedAndSize(StringBuilder buf,
long startTimeNanos,
long endTimeNanos,
long size)
A shortcut method that calls
appendElapsed(StringBuilder, long, long) and
appendSize(StringBuilder, long), concatenated by ", ". |
static void |
appendEpoch(StringBuilder buf,
long timeMillis)
Deprecated.
|
static void |
appendEpochMicros(StringBuilder buf,
long timeMicros)
Formats the given epoch time in microseconds to typical human-readable format
"yyyy-MM-dd'T'HH_mm:ss.SSSX" and appends it to the specified
StringBuilder. |
static void |
appendEpochMillis(StringBuilder buf,
long timeMillis)
Formats the given epoch time in milliseconds to typical human-readable format
"yyyy-MM-dd'T'HH_mm:ss.SSSX" and appends it to the specified
StringBuilder. |
static void |
appendSize(StringBuilder buf,
long size)
Appends the human-readable representation of the specified byte-unit
size to the specified
StringBuffer. |
static StringBuilder |
elapsed(long elapsedNanos)
Creates a new
StringBuilder whose content is the human-readable representation of the duration
given as elapsed. |
static StringBuilder |
elapsed(long startTimeNanos,
long endTimeNanos)
Creates a new
StringBuilder whose content is the human-readable representation of the duration
between the specified startTimeNanos and endTimeNanos. |
static StringBuilder |
elapsedAndSize(long startTimeNanos,
long endTimeNanos,
long size)
Similar to
appendElapsedAndSize(StringBuilder, long, long, long) except that this method
creates a new StringBuilder. |
static StringBuilder |
epoch(long timeMillis)
Deprecated.
Use
epochMillis(long). |
static StringBuilder |
epochMicros(long timeMicros)
Formats the given epoch time in microseconds to typical human-readable format
"yyyy-MM-dd'T'HH:mm:ss.SSSX".
|
static StringBuilder |
epochMillis(long timeMillis)
Formats the given epoch time in milliseconds to typical human-readable format
"yyyy-MM-dd'T'HH:mm:ss.SSSX".
|
static StringBuilder |
size(long size)
Creates a new
StringBuilder whose content is the human-readable representation of the byte-unit
size. |
public static void appendSize(StringBuilder buf, long size)
size to the specified
StringBuffer.public static void appendElapsed(StringBuilder buf, long elapsedNanos)
elapsed to the specified
StringBuilder.public static void appendElapsed(StringBuilder buf, long startTimeNanos, long endTimeNanos)
startTimeNanos
and endTimeNanos to the specified StringBuilder.public static void appendElapsedAndSize(StringBuilder buf, long startTimeNanos, long endTimeNanos, long size)
appendElapsed(StringBuilder, long, long) and
appendSize(StringBuilder, long), concatenated by ", ".public static StringBuilder elapsed(long elapsedNanos)
StringBuilder whose content is the human-readable representation of the duration
given as elapsed.public static StringBuilder elapsed(long startTimeNanos, long endTimeNanos)
StringBuilder whose content is the human-readable representation of the duration
between the specified startTimeNanos and endTimeNanos.public static StringBuilder size(long size)
StringBuilder whose content is the human-readable representation of the byte-unit
size.public static StringBuilder elapsedAndSize(long startTimeNanos, long endTimeNanos, long size)
appendElapsedAndSize(StringBuilder, long, long, long) except that this method
creates a new StringBuilder.@Deprecated public static StringBuilder epoch(long timeMillis)
epochMillis(long).timeMillis - epoch time in milliseconds@Deprecated public static void appendEpoch(StringBuilder buf, long timeMillis)
appendEpochMillis(StringBuilder, long).StringBuilder.public static StringBuilder epochMillis(long timeMillis)
timeMillis - epoch time in millisecondspublic static void appendEpochMillis(StringBuilder buf, long timeMillis)
StringBuilder.public static StringBuilder epochMicros(long timeMicros)
timeMicros - epoch time in microsecondspublic static void appendEpochMicros(StringBuilder buf, long timeMicros)
StringBuilder.Copyright © 2020 LeanCloud. All rights reserved.