|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.common.resources.ResourceMapping
public class ResourceMapping
Represents a mapping between IDs and resources.
Resource
Constructor Summary | |
---|---|
ResourceMapping()
Creates a new empty ResourceMapping . |
Method Summary | |
---|---|
void |
add(java.lang.String id,
Resource value)
Adds a mapping between the given ID and a Resource . |
void |
addAll(ResourceMapping rc)
Adds all mappings from the given ResourceMapping to
this object. |
Resource |
get(java.lang.String id)
Gets the Resource identified by the
given id. |
java.util.Map<java.lang.String,Resource> |
getResources()
Returns all the mappings between IDs and Resource s
that are kept by this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceMapping()
ResourceMapping
.
Method Detail |
---|
public void add(java.lang.String id, Resource value)
Resource
.
id
- The ID identifying the given resource in the mapping.value
- The Resource
identified by the ID
in the mapping,.public void addAll(ResourceMapping rc)
ResourceMapping
to
this object.
rc
- The ResourceMapping
.public java.util.Map<java.lang.String,Resource> getResources()
Resource
s
that are kept by this object.
Map
.public Resource get(java.lang.String id)
Resource
identified by the
given id.
id
- The ID.
Resource
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |