public class GeneralFormatter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_DAYS |
static int |
MAX_HOURS |
static int |
MAX_MILLISECONDS |
static int |
MAX_MINUTES |
static int |
MAX_SECONDS |
static int |
MAX_WEEKS
These statics represent switches for the visual formatting of the
time frame.
|
Constructor and Description |
---|
GeneralFormatter() |
Modifier and Type | Method and Description |
---|---|
static void |
appendDayType(StringBuffer str,
double total,
boolean shorthand) |
static void |
appendHourType(StringBuffer str,
double total,
boolean shorthand) |
static void |
appendMinuteType(StringBuffer str,
double total,
boolean shorthand) |
static void |
appendWeekType(StringBuffer str,
double total,
boolean shorthand)
Appends time frame representation information into the given StringBuffer
for various types of visual time frame formats.
|
public static final int MAX_WEEKS
public static final int MAX_DAYS
public static final int MAX_HOURS
public static final int MAX_MINUTES
public static final int MAX_SECONDS
public static final int MAX_MILLISECONDS
public static void appendWeekType(StringBuffer str, double total, boolean shorthand)
public static void appendDayType(StringBuffer str, double total, boolean shorthand)
public static void appendHourType(StringBuffer str, double total, boolean shorthand)
public static void appendMinuteType(StringBuffer str, double total, boolean shorthand)
Copyright © 2015. All rights reserved.