java.lang.Object
ch.qos.logback.core.pattern.FormatInfo
FormattingInfo instances contain the information obtained when parsing
formatting modifiers in conversion modifiers.
- Author:
- Ceki Gülcü
-
Constructor Summary
ConstructorDescriptionFormatInfo
(int min, int max) FormatInfo
(int min, int max, boolean leftPad, boolean leftTruncate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getMax()
int
getMin()
int
hashCode()
boolean
boolean
void
setLeftPad
(boolean leftAlign) void
setLeftTruncate
(boolean leftTruncate) void
setMax
(int max) void
setMin
(int min) toString()
static FormatInfo
This method is used to parse a string such as "5", ".7", "5.7" or "-5.7" into a FormatInfo.
-
Constructor Details
-
FormatInfo
public FormatInfo() -
FormatInfo
-
FormatInfo
-
-
Method Details
-
valueOf
This method is used to parse a string such as "5", ".7", "5.7" or "-5.7" into a FormatInfo.- Parameters:
str
- A String to convert into a FormatInfo object- Returns:
- A newly created and appropriately initialized FormatInfo object.
- Throws:
IllegalArgumentException
-
isLeftPad
-
setLeftPad
-
getMax
-
setMax
-
getMin
-
setMin
-
isLeftTruncate
-
setLeftTruncate
-
equals
-
hashCode
-
toString
-