SolidAngleUnit
, TimeUnit
@Equality public class Unit extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static Unit |
UNIT |
Unit instance with value of unity.
|
Constructor | Description |
---|---|
Unit(java.lang.String label,
java.lang.String textName,
java.lang.String symbol,
double extent,
java.lang.String description) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getDescription() |
Description text to be included in XML documentation.
|
double |
getExtent() |
Returns the extent along an axis in some externally-defined units
represented by this object.
|
java.lang.String |
getLabel() |
Returns the label, suitable for user interface selection.
|
java.lang.String |
getSymbol() |
Returns the unit symbol, suitable for use in unit metadata.
|
java.lang.String |
getTextName() |
Returns the name suitable for use in descriptive text.
|
int |
hashCode() |
|
java.lang.String |
toString() |
Returns the label.
|
public static final Unit UNIT
public Unit(java.lang.String label, java.lang.String textName, java.lang.String symbol, double extent, java.lang.String description)
label
- text to appear in a selection interfacetextName
- text to appear in user-directed descriptive textsymbol
- text to appear as unit metadata,
preferably compatible with the VOUnit standardextent
- distance along an axis in some externally-defined unitsdescription
- textual description to be included in XMLpublic java.lang.String getLabel()
public java.lang.String getTextName()
public java.lang.String getSymbol()
public java.lang.String getDescription()
public double getExtent()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.