public abstract class FormattedString extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FormattedString.Base64
Uses the base64 string representation of this object.
|
static class |
FormattedString.Date
Uses the RFC3339 full-date representation of this object.
|
static class |
FormattedString.DateTime
Uses the RFC3339 date-time representation of this object.
|
static class |
FormattedString.Native
Uses the native string representation of this object.
|
static class |
FormattedString.Null
Uses the null string representation of this object.
|
static class |
FormattedString.Uuid
Uses the UUID string representation of this object.
|
Constructor and Description |
---|
FormattedString() |
Modifier and Type | Method and Description |
---|---|
abstract String |
formatted()
Returns the formatted string representation of this object.
|
static DateFormat |
getDateFormat()
Returns the DateFormat for date strings.
|
static DateFormat |
getDateTimeFormat()
Returns the DateFormat for date-time strings.
|
static List<FormattedString> |
of(String format,
Iterable<?> objects)
Creates a FormattedString for each of the given objects.
|
static FormattedString |
of(String format,
Object object)
Creates a FormattedString for the given object.
|
String |
toString() |
public static FormattedString of(String format, Object object)
public static List<FormattedString> of(String format, Iterable<?> objects)
public abstract String formatted()
public static DateFormat getDateFormat()
public static DateFormat getDateTimeFormat()
Copyright © 2024 The Cornutum Project. All rights reserved.