public final class StringOptionUtil extends Object
StringOption.| Modifier and Type | Field and Description | 
|---|---|
| static Charset | ENCODINGThe internal text encoding. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | append(StringBuilder target,
      StringOption contents)Appends the text in the given  StringOptioninto theStringBuilder. | 
| static void | append(StringOption target,
      String contents)Appends the text in the second  StringOptioninto the first one. | 
| static void | append(StringOption target,
      StringOption contents)Appends the text in the second  StringOptioninto the first one. | 
| static Reader | asReader(StringOption option)Returns a  Readerto read the text contents in theStringOption. | 
| static int | countCodePoints(StringOption option)Returns the number of code-points in the given  StringOption. | 
| static BigDecimal | parseDecimal(StringOption contents)Parses the given  StringOptionwhich may represent a decimal value. | 
| static int | parseInt(StringOption contents)Parses the given  StringOptionwhich may represent aintvalue. | 
| static long | parseLong(StringOption contents)Parses the given  StringOptionwhich may represent alongvalue. | 
| static void | trim(StringOption option)Trims the leading/trailing classical whitespace characters in the  StringOption. | 
public static final Charset ENCODING
public static int countCodePoints(StringOption option)
StringOption.
 If the object does represent neither null nor a valid character string, this operation may raise an
 error or return a wrong count.option - the target object0 if the object represents nullNullPointerException - if the StringOption is/represents nullpublic static Reader asReader(StringOption option)
Reader to read the text contents in the StringOption.option - the target StringOptionNullPointerException - if the StringOption is/represents nullpublic static void trim(StringOption option)
StringOption.
 This only removes the following characters:
 "\t" (HT:U+0009) "\n" (LF:U+000a) "\r" (CR:U+000d) " " (SP:U+0020) StringOption.option - the target StringOptionNullPointerException - if the StringOption is/represents nullpublic static void append(StringOption target, StringOption contents)
StringOption into the first one.
 This directly modifies the first StringOption.target - the append targetcontents - the text contents to be appendedNullPointerException - if the StringOption is/represents nullpublic static void append(StringOption target, String contents)
StringOption into the first one.
 This directly modifies the first StringOption.target - the append targetcontents - the text contents to be appendedNullPointerException - if the StringOption is/represents nullpublic static void append(StringBuilder target, StringOption contents)
StringOption into the StringBuilder.target - the append targetcontents - the text contents to be appendedNullPointerException - if the StringOption is/represents nullpublic static int parseInt(StringOption contents)
StringOption which may represent a int value.contents - the text contentsNullPointerException - if the StringOption is/represents nullIllegalArgumentException - if the character sequence is wrongpublic static long parseLong(StringOption contents)
StringOption which may represent a long value.contents - the text contentsNullPointerException - if the StringOption is/represents nullIllegalArgumentException - if the character sequence is wrongpublic static BigDecimal parseDecimal(StringOption contents)
StringOption which may represent a decimal value.contents - the text contentsNullPointerException - if the StringOption is/represents nullIllegalArgumentException - if the character sequence is wrongCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.