Package net.solarnetwork.central.dao
Class VersionedMessageDao.VersionedMessages
java.lang.Object
net.solarnetwork.central.dao.VersionedMessageDao.VersionedMessages
- All Implemented Interfaces:
Serializable
- Enclosing interface:
VersionedMessageDao
Messages for a set of bundle names and locale, at a specific version.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVersionedMessages(Instant version, String[] bundleNames, String locale, Properties properties) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionString[]Get the bundle names associated with these messages.Get the locale associated with these messages.Get the messages.Get the version of these messages.
-
Constructor Details
-
VersionedMessages
public VersionedMessages(Instant version, String[] bundleNames, String locale, Properties properties) Constructor.- Parameters:
version- the versionbundleNames- the bundle nameslocale- the localeproperties- the properties- Throws:
IllegalArgumentException- if any argument is null
-
-
Method Details
-
getVersion
Get the version of these messages.- Returns:
- the version, never null
-
getBundleNames
Get the bundle names associated with these messages.- Returns:
- the bundle names, never null
-
getLocale
Get the locale associated with these messages.- Returns:
- the locale, never null
-
getProperties
Get the messages.- Returns:
- the messages, never null
-