Package com.mckoi.util
Class GeneralFormatter
java.lang.Object
com.mckoi.util.GeneralFormatter
This class provides several static convenience functions for formatting
various types of information such as a time frame.
- Author:
- Tobias Downer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intThese statics represent switches for the visual formatting of the time frame. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendDayType(StringBuffer str, double total, boolean shorthand) static voidappendHourType(StringBuffer str, double total, boolean shorthand) static voidappendMinuteType(StringBuffer str, double total, boolean shorthand) static voidappendWeekType(StringBuffer str, double total, boolean shorthand) Appends time frame representation information into the given StringBuffer for various types of visual time frame formats.
-
Field Details
-
MAX_WEEKS
public static final int MAX_WEEKSThese statics represent switches for the visual formatting of the time frame. It is desirable to have the time frame represented in different denominations.- See Also:
-
MAX_DAYS
public static final int MAX_DAYS- See Also:
-
MAX_HOURS
public static final int MAX_HOURS- See Also:
-
MAX_MINUTES
public static final int MAX_MINUTES- See Also:
-
MAX_SECONDS
public static final int MAX_SECONDS- See Also:
-
MAX_MILLISECONDS
public static final int MAX_MILLISECONDS- See Also:
-
-
Constructor Details
-
GeneralFormatter
public GeneralFormatter()
-
-
Method Details
-
appendWeekType
Appends time frame representation information into the given StringBuffer for various types of visual time frame formats. -
appendDayType
-
appendHourType
-
appendMinuteType
-