public static class AbstractResource.ResourceList extends AbstractList<AbstractResource>
modCount
Constructor and Description |
---|
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, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
replaceAll, sort, spliterator
addAll, contains, containsAll, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, stream, toArray, toArray
public boolean add(AbstractResource element)
add
in interface Collection<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)
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.MissingResourceException
public String getRequiredStringExt(String key, String ext) throws AbstractResource.MissingResourceException
key
- ext
- key extension, null if noneAbstractResource.MissingResourceException
public 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 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()
Copyright © 2016. All rights reserved.