public interface MappingGetter
| Modifier and Type | Method and Description |
|---|---|
String |
get(int namespace)
Gets the corresponding mapped name under a namespace with the namespace's index.
|
String[] |
getAllNames()
Creates an array of all mapped names, ordered by their namespace's appearance.
|
String |
getRaw(int namespace)
Gets the raw mapped name under a namespace with the namespace's index.
|
String[] |
getRawNames()
Creates an array of all mapped names, ordered by their namespace's appearance.
|
String get(int namespace)
To retrieve a namespace's index, call TinyMetadata.index(String).
namespace - the namespace's indexString getRaw(int namespace)
namespace - the namespace's indexString[] getRawNames()
This method returns all the mapped names in the declaration. It does not fill the
array to fill the empty namespaces with names from the last declared namespace. Use
getAllNames() for a version that fills empty namespaces.
This method call would be expensive as each call may create a new array.
This method may return empty elements in the array.
String[] getAllNames()
This method returns all the mapped names. It fills the empty namespaces with
names from the last declared namespace. Use getRawNames() for a version that
does not fill empty namespaces.
This method call would be expensive as each call may create a new array.