|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.sf.orangesignal.ta.util.StringUtils
public abstract class StringUtils
文字列操作に関するユーティリティを提供します。
| フィールドの概要 | |
|---|---|
static String |
EMPTY
空の文字列です。 |
| コンストラクタの概要 | |
|---|---|
StringUtils()
|
|
| メソッドの概要 | |
|---|---|
static String |
capitalize(String str)
|
static String |
defaultIfEmpty(String str,
String defaultStr)
指定された文字列が null または空の文字列でない場合は、指定された文字列を返し、
指定された文字列が null または空の文字列の場合は、デフォルトの文字列を返します。 |
static String |
defaultString(String str)
指定された文字列が null でない場合は、指定された文字列を返し、
指定された文字列が null の場合は、空の文字列を返します。 |
static String |
defaultString(String str,
String defaultStr)
指定された文字列が null でない場合は、指定された文字列を返し、
指定された文字列が null の場合は、デフォルトの文字列を返します。 |
static boolean |
isEmpty(String str)
指定された文字列が空または null であるかどうかを返します。 |
static boolean |
isNotEmpty(String str)
指定された文字列が空や null でないかどうかを返します。 |
static String |
uncapitalize(String str)
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final String EMPTY
| コンストラクタの詳細 |
|---|
public StringUtils()
| メソッドの詳細 |
|---|
public static boolean isEmpty(String str)
null であるかどうかを返します。
str - 文字列
null の場合は true それ以外の場合は falsepublic static boolean isNotEmpty(String str)
null でないかどうかを返します。
str - 文字列
null でない場合は true それ以外の場合は falsepublic static String defaultString(String str)
null でない場合は、指定された文字列を返し、
指定された文字列が null の場合は、空の文字列を返します。
str - 文字列
public static String defaultString(String str,
String defaultStr)
null でない場合は、指定された文字列を返し、
指定された文字列が null の場合は、デフォルトの文字列を返します。
str - 文字列defaultStr - デフォルトの文字列
public static String defaultIfEmpty(String str,
String defaultStr)
null または空の文字列でない場合は、指定された文字列を返し、
指定された文字列が null または空の文字列の場合は、デフォルトの文字列を返します。
str - 文字列defaultStr - デフォルトの文字列
public static String capitalize(String str)
public static String uncapitalize(String str)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||