Package ucar.units
Class RegularBaseQuantity
- java.lang.Object
-
- ucar.units.BaseQuantity
-
- ucar.units.RegularBaseQuantity
-
- All Implemented Interfaces:
Serializable
,Comparable<BaseQuantity>
,Base
public final class RegularBaseQuantity extends BaseQuantity
Provides support for a base quantity that is dimensionfull. Instances of this class are immutable.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ucar.units.BaseQuantity
AMOUNT_OF_SUBSTANCE, ELECTRIC_CURRENT, LENGTH, LUMINOUS_INTENSITY, MASS, PLANE_ANGLE, SOLID_ANGLE, THERMODYNAMIC_TEMPERATURE, TIME, UNKNOWN
-
-
Constructor Summary
Constructors Modifier Constructor Description RegularBaseQuantity(String name, String symbol)
Constructs from a name and symbol.protected
RegularBaseQuantity(String name, String symbol, boolean trusted)
Constructs from a name and a symbol.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDimensionless()
Indicates if this base quantity is dimensionless.
-
-
-
Constructor Detail
-
RegularBaseQuantity
public RegularBaseQuantity(String name, 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
-
-
Method Detail
-
isDimensionless
public boolean isDimensionless()
Indicates if this base quantity is dimensionless. Regular base quantities are always dimensionfull.- Specified by:
isDimensionless
in interfaceBase
- Specified by:
isDimensionless
in classBaseQuantity
- Returns:
false
.
-
-