-
- All Implemented Interfaces:
public final class StringKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanisHtmlLink(String $self)Search for link final static BooleanisJsonLink(String $self)Search for json link final static Stringtransform(String $self, StringTransformation transformation, Locale locale)String transformation with locale final static LongtoSafeLong(String $self, Long default)String to long with default value final static SpannedtoHtml(String $self)Compute string as Html final static SpannedtoHtmlAsLink(String $self, String url)Add link to string label and convert to HTML Spannable final static SpannedtoHtmlWithLists(String $self)Compute string as Html containing ul, ol and li tags. -
-
Method Detail
-
isHtmlLink
final static Boolean isHtmlLink(String $self)
Search for link
-
isJsonLink
final static Boolean isJsonLink(String $self)
Search for json link
-
transform
final static String transform(String $self, StringTransformation transformation, Locale locale)
String transformation with locale
- Parameters:
transformation- to applylocale- to use
-
toSafeLong
final static Long toSafeLong(String $self, Long default)
String to long with default value
- Parameters:
default- value to use if string conversion failed
-
toHtmlAsLink
final static Spanned toHtmlAsLink(String $self, String url)
Add link to string label and convert to HTML Spannable
- Parameters:
url- the link as String
-
toHtmlWithLists
final static Spanned toHtmlWithLists(String $self)
Compute string as Html containing ul, ol and li tags.
-
-
-
-