@Equality public class Unit extends Object
Modifier and Type | Field and Description |
---|---|
static Unit |
UNIT
Unit instance with value of unity.
|
Constructor and Description |
---|
Unit(String label,
String textName,
String symbol,
double extent,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
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.
|
String |
getLabel()
Returns the label, suitable for user interface selection.
|
String |
getSymbol()
Returns the unit symbol, suitable for use in unit metadata.
|
String |
getTextName()
Returns the name suitable for use in descriptive text.
|
int |
hashCode() |
String |
toString()
Returns the label.
|
public static final Unit UNIT
public Unit(String label, String textName, String symbol, double extent, 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 String getLabel()
public String getTextName()
public String getSymbol()
public String getDescription()
public double getExtent()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.