|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jfw.util.Format
public final class Format
Format strings for various uses. All methods are static and thread safe.
Constructor Summary | |
---|---|
Format()
|
Method Summary | |
---|---|
static java.lang.String |
doubleSingleQuot(java.lang.String toChange)
Double single quot. |
static java.lang.Object |
getNotEmpty(java.lang.Object toCheck,
java.lang.Object defaultValue)
Return a not null object. |
static java.lang.Object |
getNotNull(java.lang.Object toCheck)
Return a not null object. |
static java.lang.Object |
getNotNull(java.lang.Object toCheck,
java.lang.Object defaultValue)
Return a not null object. |
static java.lang.Object |
getNotNullString(java.lang.Object toCheck)
Return a not null object. |
static java.lang.String |
getNotNullString(java.lang.Object toCheck,
java.lang.String defaultValue)
Return a not null object. |
static java.lang.Object |
getNotNullStringUC(java.lang.Object toCheck)
Return a not null object. |
static java.lang.String |
getNotNullStringUC(java.lang.Object toCheck,
java.lang.String defaultValue)
Return a not null object. |
static boolean |
isEmpty(java.lang.String toCheck)
Check if a string is blank or null. |
static java.lang.String |
null2Blank(java.lang.String toCheck)
Return the blank string if toCheck is null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Format()
Method Detail |
---|
public static java.lang.String doubleSingleQuot(java.lang.String toChange)
toChange
- string to change.
public static java.lang.Object getNotNull(java.lang.Object toCheck, java.lang.Object defaultValue)
toCheck
- object to check.defaultValue
- default value in other cases.
NullObject
,
defaultValue in other cases.public static java.lang.Object getNotNull(java.lang.Object toCheck)
toCheck
- object to check.
NullObject
,
blank string in other cases.public static java.lang.String getNotNullString(java.lang.Object toCheck, java.lang.String defaultValue)
toCheck
- object to check.defaultValue
- default value in other cases.
NullObject
,
defaultValue in other cases.public static java.lang.Object getNotNullString(java.lang.Object toCheck)
toCheck
- object to check.
NullObject
,
blank string in other cases.public static java.lang.String getNotNullStringUC(java.lang.Object toCheck, java.lang.String defaultValue)
toCheck
- object to check.defaultValue
- default value in other cases.
NullObject
,
defaultValue in other cases.public static java.lang.Object getNotNullStringUC(java.lang.Object toCheck)
toCheck
- object to check.
NullObject
,
blank string in other cases.public static java.lang.Object getNotEmpty(java.lang.Object toCheck, java.lang.Object defaultValue)
toCheck
- object to check.defaultValue
- default value in other cases.
NullObject
,
defaultValue in other cases.public static java.lang.String null2Blank(java.lang.String toCheck)
toCheck
- object to check.
public static boolean isEmpty(java.lang.String toCheck)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |