]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - src/org/argeo/cms/i18n/Localized.java
1 package org
.argeo
.cms
.i18n
;
3 import java
.util
.Locale
;
5 /** Localized object. */
6 public interface Localized
{
7 /** Default assumes that this is an {@link Enum} */
8 default Object
local(Locale locale
) {
9 return LocaleUtils
.local((Enum
<?
>) this, locale
);
12 default String
lead() {
13 return LocaleUtils
.lead(this);
16 default String
lead(Locale locale
) {
17 return LocaleUtils
.lead(local(locale
).toString(), locale
);