@ThreadSafe public class MessageFormatterFactory extends java.lang.Object implements FormatterFactory<MessageFormatter>
| Constructor and Description |
|---|
MessageFormatterFactory(FormatterFactory<?>... factories) |
MessageFormatterFactory(java.lang.Iterable<FormatterFactory<?>> factories) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertSameRoot(FormatterFactory<?> root) |
MessageFormatter |
createBy(java.util.Locale locale,
java.lang.String pattern) |
MessageFormatter |
createBy(java.util.Locale locale,
java.lang.String pattern,
FormatterFactory<?> root) |
protected MessageFormatter |
createByInternal(java.util.Locale locale,
java.lang.String pattern) |
java.lang.Iterable<FormatterFactory<?>> |
getFactories() |
protected FormatterFactory<?> |
getFactoryBy(java.lang.String id) |
java.lang.String |
getId() |
static MessageFormatterFactory |
messageFormatterFactory() |
protected java.util.Map<java.lang.String,FormatterFactory<?>> |
toIdToFactory(java.lang.Iterable<FormatterFactory<?>> factories) |
public MessageFormatterFactory(@Nullable
java.lang.Iterable<FormatterFactory<?>> factories)
public MessageFormatterFactory(@Nullable
FormatterFactory<?>... factories)
@Nonnull public static MessageFormatterFactory messageFormatterFactory()
@Nonnull protected java.util.Map<java.lang.String,FormatterFactory<?>> toIdToFactory(@Nullable java.lang.Iterable<FormatterFactory<?>> factories)
@Nonnull protected FormatterFactory<?> getFactoryBy(@Nonnull java.lang.String id) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException@Nonnull public java.lang.Iterable<FormatterFactory<?>> getFactories()
@Nonnull public java.lang.String getId()
getId in interface FormatterFactory<MessageFormatter>@Nonnull public MessageFormatter createBy(@Nullable java.util.Locale locale, @Nullable java.lang.String pattern)
@Nonnull public MessageFormatter createBy(@Nullable java.util.Locale locale, @Nullable java.lang.String pattern, @Nonnull FormatterFactory<?> root)
createBy in interface FormatterFactory<MessageFormatter>protected MessageFormatter createByInternal(@Nullable java.util.Locale locale, @Nullable java.lang.String pattern)
protected void assertSameRoot(@Nullable
FormatterFactory<?> root)
Copyright © 2015 echocat. All Rights Reserved.