T
- pool object type.private static class I18nPoolFactory.SimplePool<T> extends Object implements I18nPool<T>
locale
argument, if
provided.Modifier and Type | Field and Description |
---|---|
private Map<String,T> |
map
Cache storage.
|
Modifier | Constructor and Description |
---|---|
private |
SimplePool() |
Modifier and Type | Method and Description |
---|---|
T |
get(String name,
Locale... locale)
Get instance identified by name and optional locale settings.
|
boolean |
has(String name,
Locale... locale)
Test if cache has an instance identified by given name and optional locale settings.
|
boolean |
put(String name,
T t,
Locale... locale)
Store an instance on this cache bound to given name and optional locale settings.
|
public boolean put(String name, T t, Locale... locale)
I18nPool
locale
argument is silently ignored and not even tested for validity.public T get(String name, Locale... locale)
I18nPool
locale
argument is silently ignored and not
even tested for validity.public boolean has(String name, Locale... locale)
I18nPool
locale
argument is silently ignored and not even tested for validity.Copyright © 2018. All rights reserved.