Interface StringInterner
-
- All Known Implementing Classes:
StringInternerImpl
public interface StringInterner
Creates "interned" strings that are unique for the same content. This is used for common description strings, particularly those used byBinding
instances. The internal cache of interned strings id cleared whenever theComponentClasses
InvalidationEventHub is invalidated (i.e., when component class files change).- Since:
- 5.1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
format(String format, Object... arguments)
Formats a string (usingString.format(String, Object[])
) and returns the interned result.String
intern(String string)
Interns a string.
-
-
-
Method Detail
-
intern
String intern(String string)
Interns a string.- Parameters:
string
- the string to intern- Returns:
- the input string, or another string instance with the same content
-
format
String format(String format, Object... arguments)
Formats a string (usingString.format(String, Object[])
) and returns the interned result.- Parameters:
format
- string formatarguments
- used inside the format- Returns:
- formatted and interned string
-
-