ucar.units
Class UnknownBaseQuantity

java.lang.Object
  extended by ucar.units.BaseQuantity
      extended by ucar.units.UnknownBaseQuantity
All Implemented Interfaces:
Serializable, Comparable<BaseQuantity>, Base

public final class UnknownBaseQuantity
extends BaseQuantity

Provides support for an unknown base quantity.

Version:
$Id: UnknownBaseQuantity.java 64 2006-07-12 22:30:50Z edavis $
Author:
Steven R. Emmerson
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
protected UnknownBaseQuantity()
          Constructs from nothing.
 
Method Summary
 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.
 
Methods inherited from class ucar.units.BaseQuantity
compareTo, getID, getName, getSymbol, main, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownBaseQuantity

protected UnknownBaseQuantity()
Constructs from nothing.

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 interface Base
Overrides:
equals in class BaseQuantity
Parameters:
object - The object.
Returns:
false always.

hashCode

public int hashCode()
Returns the hash code of this instance.

Overrides:
hashCode in class BaseQuantity
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 interface Base
Specified by:
isDimensionless in class BaseQuantity
Returns:
false always.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.