public class CategorySummaryImpl extends Object implements CategorySummary
Constructor and Description |
---|
CategorySummaryImpl(Urn id,
Map<Locale,String> names,
String countryCode)
Initializes a new instance of the
CategorySummaryImpl |
Modifier and Type | Method and Description |
---|---|
String |
getCountryCode()
Returns a
String representation of a country code |
Urn |
getId()
Returns an
Urn uniquely identifying the current CategorySummary instance |
String |
getName(Locale l)
Returns the current
CategorySummary instance name in the specified language |
Map<Locale,String> |
getNames()
Returns an unmodifiable
Map containing translated category name |
String |
toString()
Returns a
String describing the current CategorySummary instance |
public CategorySummaryImpl(Urn id, Map<Locale,String> names, String countryCode)
CategorySummaryImpl
id
- - an Urn
uniquely identifying the current CategorySummary
instancenames
- - a Map
containing translated category namecountryCode
- - a String
representation of a country codepublic Urn getId()
Urn
uniquely identifying the current CategorySummary
instancegetId
in interface CategorySummary
Urn
uniquely identifying the current CategorySummary
instancepublic String getName(Locale l)
CategorySummary
instance name in the specified languagegetName
in interface CategorySummary
l
- - a Locale
in which the name should be returnedOptional
public Map<Locale,String> getNames()
Map
containing translated category namegetNames
in interface CategorySummary
Map
containing translated category namepublic String getCountryCode()
String
representation of a country codegetCountryCode
in interface CategorySummary
String
representation of a country codepublic String toString()
String
describing the current CategorySummary
instancetoString
in class Object
String
describing the current CategorySummary
instanceCopyright © 2016–2025. All rights reserved.