university
Class HR

java.lang.Object
  extended by university.Unit
      extended by university.Admin
          extended by university.HR
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class HR
extends Admin

Class for the Human Resource department of the university.

See Also:
Serialized Form

Constructor Summary
protected HR(java.lang.String name, Address address)
          Creates a new instance of HR
 
Method Summary
static Unit create(java.lang.String name, Address address)
          Create a new HR Unit.
static Unit getInstance()
          Returns an instance of HR.
 
Methods inherited from class university.Unit
getAddress, getName, setAddress, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HR

protected HR(java.lang.String name,
             Address address)
Creates a new instance of HR

Method Detail

getInstance

public static Unit getInstance()
Returns an instance of HR.

Returns:
Unit Returns a HR unit.

create

public static Unit create(java.lang.String name,
                          Address address)
Create a new HR Unit.

Parameters:
name - The name of the Unit.
address - The address of the Unit
Returns:
Unit the new unit that was created