Package ucar.units
Class UnknownBaseQuantity
- java.lang.Object
-
- ucar.units.BaseQuantity
-
- ucar.units.UnknownBaseQuantity
-
- All Implemented Interfaces:
Serializable
,Comparable<BaseQuantity>
,Base
public final class UnknownBaseQuantity extends BaseQuantity
Provides support for an unknown base quantity.- 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 protected
UnknownBaseQuantity()
Constructs from nothing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Indicates if this quantity is semantically the same as an object.int
hashCode()
Returns the hash code of this instance.boolean
isDimensionless()
Indicates if this quantity is dimensionless.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates if this quantity is semantically the same as an object. Unknown quantities are never equal by definition -- not even to itself.- Specified by:
equals
in interfaceBase
- Overrides:
equals
in classBaseQuantity
- Parameters:
object
- The object.- Returns:
false
always.
-
hashCode
public int hashCode()
Returns the hash code of this instance.- Overrides:
hashCode
in classBaseQuantity
- Returns:
- The hash code of this instance.
-
isDimensionless
public boolean isDimensionless()
Indicates if this quantity is dimensionless. Unknown quantities are never dimensionless by definition.- Specified by:
isDimensionless
in interfaceBase
- Specified by:
isDimensionless
in classBaseQuantity
- Returns:
false
always.
-
-