|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensorbase.resource.projects.ProjectStringMap
public class ProjectStringMap
Helper class to support Project to String mappings. We need this because I don't know how to define JAXB Project instances with a custom equals() and hashCode() method such that equal Project instances are those with the same name and owner.
Constructor Summary | |
---|---|
ProjectStringMap()
|
Method Summary | |
---|---|
java.lang.String |
get(Project project)
Returns the string associated with Project, or null if not found. |
void |
put(Project project,
java.lang.String info)
Puts [project, info] into the map, after removing any current project instance from the map with the same name and owner. |
void |
remove(Project project)
Removes any projects with the same name and owner as Project from this data structure. |
java.util.Collection<java.lang.String> |
values()
Returns the strings in this map as a Collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectStringMap()
Method Detail |
---|
public void put(Project project, java.lang.String info)
project
- The Project to be added.info
- The associated String.public java.lang.String get(Project project)
project
- The project whose string is to be retrieved.
public void remove(Project project)
project
- A project specifying the projects to be removed by name and owner.public java.util.Collection<java.lang.String> values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |