Package ucar.visad
Class Constants
java.lang.Object
ucar.visad.Constants
Provides support for scientific constants.
- Version:
- $Revision: 1.8 $ $Date: 2005/05/13 18:34:02 $
- Author:
- Steven R. Emmerson
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Constants
Constructs from a parent constant table ornull
. Protected to prevent use. The parent table will be searched if the constant is not found in this instances's table.- Parameters:
parent
- The parent constant table ornull
.- Throws:
VisADException
- if a core VisAD failure occurs.
-
-
Method Details
-
instance
Returns an instance of this class.- Returns:
- An instance of this class.
-
put
Stores a constant into the table.- Parameters:
name
- The name of the constant.value
- The value of the constant.- Returns:
- The value previously stored under the name.
May be
null
.
-
get
Returns the constant with a given name.- Parameters:
name
- The name of the constant.- Returns:
- The constant with the given name. May be
null
if not found.
-