public class EnzymeSubclass extends Object implements Comparable<EnzymeSubclass>
Constructor and Description |
---|
EnzymeSubclass(EnzymeCommissionNumber ec,
String className,
String name,
String description,
List<EnzymeSubSubclass> subSubclasses)
Returns an
EnzymeSubclass instance. |
Modifier and Type | Method and Description |
---|---|
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.
|
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.public int compareTo(EnzymeSubclass enzymeSubclass)
compareTo
in interface Comparable<EnzymeSubclass>
enzymeSubclass
- The object to be compared to this instance.public boolean equals(Object o)
public int hashCode()
public EnzymeCommissionNumber getEc()
public String getClassName()
public String getName()
public String getDescription()
public List<EnzymeSubSubclass> getSubSubclasses()
Copyright © 2014 EMBL-EBI. All rights reserved.