|
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.Contribution
public class Contribution
Contribution represents the association between a resource and a Composition or a Track, where the resource contributes different roles to the composition.
Role,
Composition,
Track,
Resource,
Serialized Form| Constructor Summary | |
|---|---|
Contribution(Resource resource,
Role role,
int importance,
String comment)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Contribution con)
compares objects by their importance and then by their resource (returns 0 if objects are equal for consitency, though) |
boolean |
equals(Object obj)
object is equal if resouce and role are equal |
String |
getComment()
|
int |
getImportance()
the higher the number, the higher the importance. |
Resource |
getResource()
|
Role |
getRole()
|
int |
hashCode()
|
void |
setComment(String comment)
|
void |
setImportance(int n)
the higher the number, the higher the importance |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Contribution(Resource resource,
Role role,
int importance,
String comment)
| Method Detail |
|---|
public Resource getResource()
public Role getRole()
public int getImportance()
public void setImportance(int n)
public String getComment()
public void setComment(String comment)
public int hashCode()
hashCode in class Objectpublic int compareTo(Contribution con)
compareTo in interface Comparable<Contribution>public boolean equals(Object obj)
equals in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||