Class BasicConfigurableLocalizedServiceInfo
java.lang.Object
net.solarnetwork.domain.BasicIdentity<String>
net.solarnetwork.domain.BasicLocalizedServiceInfo
net.solarnetwork.settings.support.BasicConfigurableLocalizedServiceInfo
- All Implemented Interfaces:
Comparable<String>,Identity<String>,LocalizedServiceInfo,ConfigurableLocalizedServiceInfo
public class BasicConfigurableLocalizedServiceInfo
extends BasicLocalizedServiceInfo
implements ConfigurableLocalizedServiceInfo
Basic immutable implementation of
ConfigurableLocalizedServiceInfo.- Since:
- 1.43
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.domain.LocalizedServiceInfo
LocalizedServiceInfo.LocalizedNameComparator -
Field Summary
Fields inherited from interface net.solarnetwork.domain.LocalizedServiceInfo
SORT_BY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBasicConfigurableLocalizedServiceInfo(String id, Locale locale, String name, String description, Map<String, String> infoMessages) Construct without any settings.BasicConfigurableLocalizedServiceInfo(String id, Locale locale, String name, String description, Map<String, String> infoMessages, List<SettingSpecifier> settings) Constructor.BasicConfigurableLocalizedServiceInfo(LocalizedServiceInfo info, List<SettingSpecifier> settings) Copy constructor from anotherLocalizedServiceInfoinstance. -
Method Summary
Methods inherited from class net.solarnetwork.domain.BasicLocalizedServiceInfo
getLocale, getLocalizedDescription, getLocalizedInfoMessages, getLocalizedNameMethods inherited from class net.solarnetwork.domain.BasicIdentity
clone, compareTo, equals, getId, hashCodeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface net.solarnetwork.domain.LocalizedServiceInfo
getLocale, getLocalizedDescription, getLocalizedInfoMessages, getLocalizedName
-
Constructor Details
-
BasicConfigurableLocalizedServiceInfo
public BasicConfigurableLocalizedServiceInfo(String id, Locale locale, String name, String description, Map<String, String> infoMessages) Construct without any settings.- Parameters:
id- the unique service identifierlocale- the localename- the localized namedescription- the localized descriptioninfoMessages- the localized info messages
-
BasicConfigurableLocalizedServiceInfo
public BasicConfigurableLocalizedServiceInfo(String id, Locale locale, String name, String description, Map<String, String> infoMessages, List<SettingSpecifier> settings) Constructor.- Parameters:
id- the unique service identifierlocale- the localename- the localized namedescription- the localized descriptioninfoMessages- the localized info messagessettings- the settings
-
BasicConfigurableLocalizedServiceInfo
public BasicConfigurableLocalizedServiceInfo(LocalizedServiceInfo info, List<SettingSpecifier> settings) Copy constructor from anotherLocalizedServiceInfoinstance.- Parameters:
info- the info to copysettings- the settings
-
-
Method Details
-
getSettingSpecifiers
Description copied from interface:ConfigurableLocalizedServiceInfoGet a list ofSettingSpecifierinstances.- Specified by:
getSettingSpecifiersin interfaceConfigurableLocalizedServiceInfo- Returns:
- list of
SettingSpecifier
-