public class FormatInfo
extends java.lang.Object
Constructor and Description |
---|
FormatInfo() |
FormatInfo(int min,
int max) |
FormatInfo(int min,
int max,
boolean leftPad,
boolean leftTruncate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getMax() |
int |
getMin() |
int |
hashCode() |
boolean |
isLeftPad() |
boolean |
isLeftTruncate() |
void |
setLeftPad(boolean leftAlign) |
void |
setLeftTruncate(boolean leftTruncate) |
void |
setMax(int max) |
void |
setMin(int min) |
java.lang.String |
toString() |
static FormatInfo |
valueOf(java.lang.String str)
This method is used to parse a string such as "5", ".7", "5.7" or "-5.7" into
a FormatInfo.
|
public FormatInfo()
public FormatInfo(int min, int max)
public FormatInfo(int min, int max, boolean leftPad, boolean leftTruncate)
public static FormatInfo valueOf(java.lang.String str) throws java.lang.IllegalArgumentException
str
- A String to convert into a FormatInfo objectjava.lang.IllegalArgumentException
public boolean isLeftPad()
public void setLeftPad(boolean leftAlign)
public int getMax()
public void setMax(int max)
public int getMin()
public void setMin(int min)
public boolean isLeftTruncate()
public void setLeftTruncate(boolean leftTruncate)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved