public final class LocalizedString extends Object
| Modifier and Type | Field and Description |
|---|---|
static LocalizedString |
EMPTY_STRING |
| Constructor and Description |
|---|
LocalizedString(String contents)
Create a
LocalizedString with pre-translated contents. |
public static final LocalizedString EMPTY_STRING
public LocalizedString(String contents)
LocalizedString with pre-translated contents. This
constructor is public for testing purposes, production code should use
Translate#localize(? extends Enum) instead.contents - The pre-translated contents for the new LocalizedStringpublic String getContents()
Copyright © 2015. All rights reserved.