public class Configuration extends Object
| Constructor and Description |
|---|
Configuration() |
| Modifier and Type | Method and Description |
|---|---|
ConversionMode |
getConversionMode()
Returns the conversion mode applied in supported operations if no specific mode is set.
|
PrintStyle |
getPrintStyleForDetails()
Returns the default
PrintStyle for the detailed stopwatch formatter. |
PrintStyle |
getPrintStyleForSummary()
Returns the default
PrintStyle for the summarized stopwatch formatter. |
int |
getScale()
Returns the maximum number of decimal places applied if double-precision conversion
mode is set.
|
TimeUnit |
getTimeUnit()
Returns the time unit maintained by default if no specific time unit is specified.
|
void |
setConversionMode(ConversionMode conversionMode)
Defines the default conversion mode to be applied in supported operations if no
specific mode is set.
|
void |
setPrintStyleForDetails(PrintStyle printStyle)
Defines the default
PrintStyle for the detailed stopwatch formatter. |
void |
setPrintStyleForSummary(PrintStyle printStyle)
Defines the default
PrintStyle for the summarized stopwatch formatter. |
void |
setScale(int scale)
Sets a maximum number of decimal places to be applied if double-precision conversion
mode is set.
|
void |
setTimeUnit(TimeUnit timeUnit)
Defines the time unit to be maintained by default if no specific time unit is
specified.
|
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
timeUnit - the TimeUnit to setNullPointerException - if the specified time unit is nullpublic ConversionMode getConversionMode()
public void setConversionMode(ConversionMode conversionMode)
conversionMode - the ConversionMode to setNullPointerException - if the specified conversion mode is nullpublic int getScale()
public void setScale(int scale)
scale - a number between 0 and 16 to be setIllegalArgumentException - if the specified number is outside the allowed rangepublic PrintStyle getPrintStyleForSummary()
PrintStyle for the summarized stopwatch formatter.PrintStyle for the summarized stopwatch formatterpublic void setPrintStyleForSummary(PrintStyle printStyle)
PrintStyle for the summarized stopwatch formatter.
The object will be used by the following operations:
printStyle - the PrintStyle to be set; not nullNullPointerException - if the specified PrintStyle is nullpublic PrintStyle getPrintStyleForDetails()
PrintStyle for the detailed stopwatch formatter.PrintStyle for the detailed stopwatch formatterpublic void setPrintStyleForDetails(PrintStyle printStyle)
PrintStyle for the detailed stopwatch formatter.
The object will be used by the following operations:
printStyle - the PrintStyle to be set; not nullNullPointerException - if the specified PrintStyle is nullCopyright © 2022. All rights reserved.