Class VersionedMessageDao.VersionedMessages

java.lang.Object
net.solarnetwork.central.dao.VersionedMessageDao.VersionedMessages
All Implemented Interfaces:
Serializable
Enclosing interface:
VersionedMessageDao

public static class VersionedMessageDao.VersionedMessages extends Object implements Serializable
Messages for a set of bundle names and locale, at a specific version.
See Also:
  • Constructor Details

    • VersionedMessages

      public VersionedMessages(Instant version, String[] bundleNames, String locale, Properties properties)
      Constructor.
      Parameters:
      version - the version
      bundleNames - the bundle names
      locale - the locale
      properties - the properties
      Throws:
      IllegalArgumentException - if any argument is null
  • Method Details

    • getVersion

      public Instant getVersion()
      Get the version of these messages.
      Returns:
      the version, never null
    • getBundleNames

      public String[] getBundleNames()
      Get the bundle names associated with these messages.
      Returns:
      the bundle names, never null
    • getLocale

      public String getLocale()
      Get the locale associated with these messages.
      Returns:
      the locale, never null
    • getProperties

      public Properties getProperties()
      Get the messages.
      Returns:
      the messages, never null