|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.domain.enzyme.EnzymeComment
public class EnzymeComment
This class represents a comment of an enzyme entry.
Instances of this class are immutable.
| Constructor Summary | |
|---|---|
EnzymeComment(String commentText,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Returns a EnzymeComment instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Standard equals method. |
String |
getCommentText()
|
EnzymeSourceConstant |
getSource()
|
EnzymeViewConstant |
getView()
|
int |
hashCode()
Returns the hash code of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnzymeComment(String commentText,
EnzymeSourceConstant source,
EnzymeViewConstant view)
EnzymeComment instance.
commentText - The actual comment.source - The comment's source.view - The view(s) where this comment will be displayed.
NullPointerException - if commentText or source are null.
IllegalArgumentException - if commentText is empty.| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objecto - Object to be compared to this one.
true if the objects are equal.public int hashCode()
hashCode in class Objectpublic String getCommentText()
public EnzymeSourceConstant getSource()
public EnzymeViewConstant getView()
getView in interface Viewable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||