|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.cddb.Resource
public class Resource
Resource is the abstract notion of 'something' or 'someone' that can contribute to a composition via a given role. A resource could be an artist, an orchestra, a location, an instrument or anything else you may think of.
Role,
Composition,
Serialized Form| Constructor Summary | |
|---|---|
Resource(String name,
String description)
Resource objects are to be uniquely identifiable by their name |
|
| Method Summary | |
|---|---|
int |
compareTo(Resource r)
compares by the name |
boolean |
equals(Object obj)
checks the name to be equal (after checking being an instance of Resource) |
String |
getDescription()
|
String |
getName()
|
int |
hashCode()
|
void |
setDescription(String description)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Resource(String name,
String description)
| Method Detail |
|---|
public String getName()
public String getDescription()
public void setDescription(String description)
public int hashCode()
hashCode in class Objectpublic int compareTo(Resource r)
compareTo in interface Comparable<Resource>public boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||