org.mars_sim.msp.core.science
Class Science

java.lang.Object
  extended by org.mars_sim.msp.core.science.Science
All Implemented Interfaces:
Serializable, Comparable

public class Science
extends Object
implements Serializable, Comparable

A class representing a field of science.

See Also:
Serialized Form

Field Summary
static String AREOLOGY
           
static String ASTRONOMY
           
static String BIOLOGY
           
static String BOTANY
           
static String CHEMISTRY
           
static String MATHEMATICS
           
static String MEDICINE
           
static String METEOROLOGY
           
static String PHYSICS
           
 
Method Summary
 int compareTo(Object o)
          Compares this object with the specified object for order.
 boolean equals(Object object)
          Checks if an object is equal to this object.
 String getName()
          Gets the name of the field of science.
 int hashCode()
          Gets the hash code value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AREOLOGY

public static final String AREOLOGY
See Also:
Constant Field Values

ASTRONOMY

public static final String ASTRONOMY
See Also:
Constant Field Values

BIOLOGY

public static final String BIOLOGY
See Also:
Constant Field Values

BOTANY

public static final String BOTANY
See Also:
Constant Field Values

CHEMISTRY

public static final String CHEMISTRY
See Also:
Constant Field Values

MATHEMATICS

public static final String MATHEMATICS
See Also:
Constant Field Values

MEDICINE

public static final String MEDICINE
See Also:
Constant Field Values

METEOROLOGY

public static final String METEOROLOGY
See Also:
Constant Field Values

PHYSICS

public static final String PHYSICS
See Also:
Constant Field Values
Method Detail

getName

public String getName()
Gets the name of the field of science.

Returns:
name.

compareTo

public int compareTo(Object o)
Compares this object with the specified object for order.

Specified by:
compareTo in interface Comparable
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

equals

public boolean equals(Object object)
Checks if an object is equal to this object.

Overrides:
equals in class Object
Returns:
true if equal

hashCode

public int hashCode()
Gets the hash code value.

Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013. All Rights Reserved.