Class AbstractMessageLoader
- java.lang.Object
-
- com.github.siroshun09.mcmessage.loader.AbstractMessageLoader
-
- All Implemented Interfaces:
MessageLoader,MessageHoldable
public abstract class AbstractMessageLoader extends Object implements MessageLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.siroshun09.mcmessage.loader.MessageLoader
MessageLoader.DuplicateKeyMessage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractMessageLoader(Path path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexistsFile()@Nullable LocalegetLocale()@Nullable MessagegetMessage(@NotNull String key)protected @NotNull Map<String,String>getMessageMap()@NotNull @Unmodifiable Set<KeyedMessage>getMessages()protected @NotNull PathgetPath()@NotNull Map<String,MessageFormat>toMessageFormatMap()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.siroshun09.mcmessage.MessageHoldable
getMessage, getMessage
-
Methods inherited from interface com.github.siroshun09.mcmessage.loader.MessageLoader
load, registerToRegistry, save
-
-
-
-
Constructor Detail
-
AbstractMessageLoader
protected AbstractMessageLoader(Path path)
-
-
Method Detail
-
existsFile
public boolean existsFile()
- Specified by:
existsFilein interfaceMessageLoader
-
getMessage
@Nullable public @Nullable Message getMessage(@NotNull @NotNull String key)
- Specified by:
getMessagein interfaceMessageHoldable
-
getMessages
@NotNull public @NotNull @Unmodifiable Set<KeyedMessage> getMessages()
- Specified by:
getMessagesin interfaceMessageHoldable
-
getLocale
@Nullable public @Nullable Locale getLocale()
- Specified by:
getLocalein interfaceMessageLoader
-
toMessageFormatMap
@NotNull public @NotNull Map<String,MessageFormat> toMessageFormatMap()
- Specified by:
toMessageFormatMapin interfaceMessageLoader
-
getMessageMap
@NotNull protected @NotNull Map<String,String> getMessageMap()
-
-