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.
- Version:
- $Id: UnknownBaseQuantity.java 64 2006-07-12 22:30:50Z edavis $
- Author:
- Steven R. Emmerson
- See Also:
- Serialized Form
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. |
UnknownBaseQuantity
protected UnknownBaseQuantity()
- Constructs from nothing.
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.