|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass
public class EnzymeSubclass
This class represents an enzyme subclass of the Enzyme Nomenclature.
Instances of this class are immutable.
Constructor Summary | |
---|---|
EnzymeSubclass(EnzymeCommissionNumber ec,
String className,
String name,
String description,
List<EnzymeSubSubclass> subSubclasses)
Returns an EnzymeSubclass instance. |
Method Summary | |
---|---|
int |
compareTo(EnzymeSubclass enzymeSubclass)
Makes instances of this class comparable. |
boolean |
equals(Object o)
Standard equals method. |
String |
getClassName()
|
String |
getDescription()
|
EnzymeCommissionNumber |
getEc()
|
String |
getName()
|
List<EnzymeSubSubclass> |
getSubSubclasses()
|
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 EnzymeSubclass(EnzymeCommissionNumber ec, String className, String name, String description, List<EnzymeSubSubclass> subSubclasses)
EnzymeSubclass
instance.
ec
- The class' EC.className
- The name of the class.name
- The name of the subclass.description
- The description of the class.subSubclasses
- The list of sub-subclasses (see EnzymeSubSubclass
).
NullPointerException
- if any of the parameters is null
.
IllegalArgumentException
- if the list of sub-subclasses is empty.Method Detail |
---|
public int compareTo(EnzymeSubclass enzymeSubclass)
compareTo
in interface Comparable<EnzymeSubclass>
enzymeSubclass
- The object to be compared to this instance.
public boolean equals(Object o)
equals
in class Object
o
- Object to be compared to this one.
true
if the objects are equal.public int hashCode()
hashCode
in class Object
public EnzymeCommissionNumber getEc()
public String getClassName()
public String getName()
public String getDescription()
public List<EnzymeSubSubclass> getSubSubclasses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |