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