public class StringInternerImpl extends Object implements StringInterner
| Constructor and Description |
|---|
StringInternerImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(String format,
Object... arguments)
Formats a string (using
String.format(String, Object[])) and returns the interned result. |
String |
intern(String string)
Interns a string.
|
void |
setupInvalidation(InvalidationEventHub hub) |
public StringInternerImpl()
@PostInjection public void setupInvalidation(@ComponentClasses InvalidationEventHub hub)
public String intern(String string)
StringInternerintern in interface StringInternerstring - the string to internpublic String format(String format, Object... arguments)
StringInternerString.format(String, Object[])) and returns the interned result.format in interface StringInternerformat - string formatarguments - used inside the format5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.