|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.Unit
university.Academic
university.Education
university.CIS
public class CIS
Class for the CIS department in the university. Uses the sigleton patterns so only one instance can be created
Method Summary | |
---|---|
void |
addLanguage(java.lang.String programmingLanguage)
Adds a programming language to those taught by the CIS department |
static Unit |
create(java.lang.String name,
Address address)
Creates a new CIS unit. |
static Unit |
getInstance()
Returns the unit |
java.lang.String[] |
getLanguages()
Returns an array of the programming languages taught by the CIS department |
java.lang.String |
toString()
Returns a String representation of the CIS unit |
Methods inherited from class university.Unit |
---|
getAddress, getName, setAddress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Unit getInstance()
public static Unit create(java.lang.String name, Address address)
name
- The name of the unitaddress
- The address of the unit
public final void addLanguage(java.lang.String programmingLanguage)
programmingLanguage
- The name of the new programming languagepublic final java.lang.String[] getLanguages()
public java.lang.String toString()
toString
in class Unit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |