ucar.units
Class RegularBaseQuantity
java.lang.Object
ucar.units.BaseQuantity
ucar.units.RegularBaseQuantity
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, Base
public final class RegularBaseQuantity
- extends BaseQuantity
Provides support for a base quantity that is dimensionfull.
Instances of this class are immutable.
- Version:
- $Id: RegularBaseQuantity.java 64 2006-07-12 22:30:50Z edavis $
- Author:
- Steven R. Emmerson
- See Also:
- Serialized Form
|
Constructor Summary |
|
RegularBaseQuantity(java.lang.String name,
java.lang.String symbol)
Constructs from a name and symbol. |
protected |
RegularBaseQuantity(java.lang.String name,
java.lang.String symbol,
boolean trusted)
Constructs from a name and a symbol. |
|
Method Summary |
boolean |
isDimensionless()
Indicates if this base quantity is dimensionless. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RegularBaseQuantity
public RegularBaseQuantity(java.lang.String name,
java.lang.String symbol)
throws NameException
- Constructs from a name and symbol.
- Parameters:
name - The name of the base unit.symbol - The symbol of the base unit.
- Throws:
NameException
RegularBaseQuantity
protected RegularBaseQuantity(java.lang.String name,
java.lang.String symbol,
boolean trusted)
- Constructs from a name and a symbol. This is a trusted constructor
for use by the parent class only.
- Parameters:
name - The name of the base unit.symbol - The symbol of the base unit.
isDimensionless
public boolean isDimensionless()
- Indicates if this base quantity is dimensionless. Regular base
quantities are always dimensionfull.
- Specified by:
isDimensionless in interface Base- Specified by:
isDimensionless in class BaseQuantity
- Returns:
false.