public final class EventFormatter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EventFormatter.LookupFieldPartFactory
PartFactory for lookups.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(Event event)
Formats an event using the default locale.
|
static java.lang.String |
format(Event event,
java.util.Locale locale)
Formats an event using a given locale.
|
static java.lang.String |
format(Event event,
java.lang.String pattern)
Formats the event using a given pattern.
|
public static java.lang.String format(Event event)
event - the eventpublic static java.lang.String format(Event event, java.util.Locale locale)
event - the eventlocale - the localepublic static java.lang.String format(Event event, java.lang.String pattern)
AdvancedMessageFormat.event - the eventpattern - the pattern (compatible with AdvancedMessageFormat)Copyright © 2007–2023. All rights reserved.