Package quadbase.util
Class LogicalFormat
java.lang.Object
quadbase.util.LogicalFormat
- All Implemented Interfaces:
IFormat
LogicalFormat
Class to format logical/boolean value
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int1/0static final intT/Fstatic final intTrue/Falsestatic final intY/Nstatic final intYes/NoFields inherited from interface quadbase.util.IFormat
DATETIME, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
T_F
public static final int T_FT/F- See Also:
-
TRUE_FALSE
public static final int TRUE_FALSETrue/False- See Also:
-
YES_NO
public static final int YES_NOYes/No- See Also:
-
Y_N
public static final int Y_NY/N- See Also:
-
ONE_ZERO
public static final int ONE_ZERO1/0- See Also:
-
-
Constructor Details
-
LogicalFormat
public LogicalFormat(int format) Create a LogicalFormat instance.- Parameters:
format- one of T_F, TRUE_FALSE, YES_NO, Y_N, ONE_ZERO
-
-
Method Details
-
getFormatType
public int getFormatType()Define quadbase.util.IFormat. Return the type of quadbase.util.IFormat.- Specified by:
getFormatTypein interfaceIFormat- Returns:
- IFormat.LOGICAL
-
format
Define quadbase.util.IFormat. Format the object if it is an instance of Boolean, otherwise call the default toString() method. -
getformat
public int getformat()Get current format.- Parameters:
return- current format
-
setformat
public void setformat(int format) Set logical format.- Parameters:
format- new format
-