
public static class AbstractResource.ResourceList extends AbstractList<AbstractResource> implements Set<AbstractResource>
modCount| Constructor and Description |
|---|
AbstractResource.ResourceList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(AbstractResource element) |
void |
add(int index,
AbstractResource element) |
void |
addToKeySet(Set<String> s)
Add all keys known by this ResourceList to the specified set.
|
GwtLocale |
findLeastDerivedLocale(com.google.gwt.core.ext.TreeLogger logger,
GwtLocale locale)
From the list of locales matched for any resources in this resource list,
choose the one that is least derived from the original search locale.
|
AbstractResource |
get(int index) |
AnnotationsResource |
getAnnotationsResource(com.google.gwt.core.ext.TreeLogger logger,
String key)
Returns the first AnnotationsResource containing a specified key.
|
AbstractResource.ResourceEntry |
getEntry(String key)
Get an entry from the first resource in this list containing a match.
|
Collection<String> |
getExtension(String key)
Returns the list of extensions available for a given key.
|
PluralRule.PluralForm[] |
getPluralForms(String key)
Returns the list of plural forms for a given key.
|
String |
getRequiredString(String key)
Returns a translation for a key, or throw an exception.
|
String |
getRequiredStringExt(String key,
String ext)
Returns a translation for a key/extension, or throw an exception.
|
String |
getString(String key)
Returns a translation for a key, or null if not found.
|
String |
getStringExt(String key,
String extension)
Returns a translation for a key/extension, or null if not found.
|
int |
indexOf(Object o) |
Iterator<AbstractResource> |
iterator() |
Set<String> |
keySet()
Returns set of keys present across all resources.
|
int |
lastIndexOf(Object o) |
AbstractResource |
remove(int index) |
void |
setPluralForms(String key,
PluralRule.PluralForm[] forms)
Set the plural forms associated with a given message.
|
int |
size() |
addAll, clear, equals, hashCode, listIterator, listIterator, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic boolean add(AbstractResource element)
add in interface Collection<AbstractResource>add in interface List<AbstractResource>add in interface Set<AbstractResource>add in class AbstractList<AbstractResource>public void add(int index,
AbstractResource element)
add in interface List<AbstractResource>add in class AbstractList<AbstractResource>public void addToKeySet(Set<String> s)
s - set to add keys topublic GwtLocale findLeastDerivedLocale(com.google.gwt.core.ext.TreeLogger logger, GwtLocale locale)
logger - logger to uselocale - originally requested localepublic AbstractResource get(int index)
get in interface List<AbstractResource>get in class AbstractList<AbstractResource>public AnnotationsResource getAnnotationsResource(com.google.gwt.core.ext.TreeLogger logger, String key)
logger - key - public AbstractResource.ResourceEntry getEntry(String key)
key - public Collection<String> getExtension(String key)
key - public PluralRule.PluralForm[] getPluralForms(String key)
key - public String getRequiredString(String key) throws AbstractResource.MissingResourceException
key - AbstractResource.MissingResourceExceptionpublic String getRequiredStringExt(String key, String ext) throws AbstractResource.MissingResourceException
key - ext - key extension, null if noneAbstractResource.MissingResourceExceptionpublic String getString(String key)
key - public String getStringExt(String key, String extension)
key - extension - key extension, null if nonepublic int indexOf(Object o)
indexOf in interface List<AbstractResource>indexOf in class AbstractList<AbstractResource>public Iterator<AbstractResource> iterator()
iterator in interface Iterable<AbstractResource>iterator in interface Collection<AbstractResource>iterator in interface List<AbstractResource>iterator in interface Set<AbstractResource>iterator in class AbstractList<AbstractResource>public int lastIndexOf(Object o)
lastIndexOf in interface List<AbstractResource>lastIndexOf in class AbstractList<AbstractResource>public AbstractResource remove(int index)
remove in interface List<AbstractResource>remove in class AbstractList<AbstractResource>public void setPluralForms(String key, PluralRule.PluralForm[] forms)
key - forms - public int size()
size in interface Collection<AbstractResource>size in interface List<AbstractResource>size in interface Set<AbstractResource>size in class AbstractCollection<AbstractResource>Copyright © 2016. All rights reserved.