uk.ac.ebi.intenz.domain.enzyme
Class EnzymeSubSubclass

java.lang.Object
  extended by uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass

public class EnzymeSubSubclass
extends Object

This class represents an enzyme sub-subclass of the Enzyme Nomenclature.

Instances of this class are immutable.

Version:
$Revision: 1.2 $ $Date: 2008/01/28 12:33:00 $
Author:
Michael Darsow

Constructor Summary
EnzymeSubSubclass(EnzymeCommissionNumber ec, String className, String subclassName, String name, String description, List<EnzymeEntry> entries)
          Returns an EnzymeSubSubclass instance.
 
Method Summary
 int compareTo(Object o)
          Makes instances of this class comparable.
 boolean equals(Object o)
          Standard equals method.
 String getClassName()
           
 String getDescription()
           
 EnzymeCommissionNumber getEc()
           
 List<EnzymeEntry> getEntries()
           
 String getName()
           
 String getSubclassName()
           
 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

EnzymeSubSubclass

public EnzymeSubSubclass(EnzymeCommissionNumber ec,
                         String className,
                         String subclassName,
                         String name,
                         String description,
                         List<EnzymeEntry> entries)
Returns an EnzymeSubSubclass instance.

Parameters:
ec - The class' EC.
className - The name of the class.
subclassName - The name of the subclass.
name - The name of the subclass.
description - The description of the class.
entries - The list of entries (see EnzymeEntry).
Throws:
NullPointerException - if any parameters are null apart from name and description.
IllegalArgumentException - if the list of entries is empty.
Method Detail

compareTo

public int compareTo(Object o)
Makes instances of this class comparable.

Parameters:
o - The object to be compared to this instance.
Returns:
a pos. integer if this instance is greater than, a neg. integer if it is less than or 0 if it equals o.
Throws:
NullPointerException - if o is null.

equals

public boolean equals(Object o)
Standard equals method.

Overrides:
equals in class Object
Parameters:
o - Object to be compared to this one.
Returns:
true if the objects are equal.

hashCode

public int hashCode()
Returns the hash code of this object.

Overrides:
hashCode in class Object
Returns:
the hash code of this object.

getEc

public EnzymeCommissionNumber getEc()

getClassName

public String getClassName()

getSubclassName

public String getSubclassName()

getName

public String getName()

getDescription

public String getDescription()

getEntries

public List<EnzymeEntry> getEntries()


Copyright © 2013 EMBL-EBI. All Rights Reserved.