org.jscience.arts.hobbies
Class Hobby

java.lang.Object
  extended by org.jscience.arts.hobbies.Hobby
All Implemented Interfaces:
Named

public class Hobby
extends java.lang.Object
implements Named

A class representing a hobby (a "for the fun" passion in life).


Constructor Summary
Hobby(java.lang.String name)
          Creates a new Hobby object.
Hobby(java.lang.String name, int art)
          Creates a new Hobby object.
 
Method Summary
 int getArt()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 void setArt(int art)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hobby

public Hobby(java.lang.String name)
Creates a new Hobby object.

Parameters:
name - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

Hobby

public Hobby(java.lang.String name,
             int art)
Creates a new Hobby object.

Parameters:
name - DOCUMENT ME!
art - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

getArt

public int getArt()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setArt

public void setArt(int art)
DOCUMENT ME!

Parameters:
art - DOCUMENT ME!