|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.measure.AngularVelocityUnits
public class AngularVelocityUnits
Units of angular velocity.
Version Info:
$Revision: 1586 $ |
$Date: 2008-10-01 10:38:49 -0600 (Wed, 01 Oct 2008) $ |
$Author: dharland $ (last person to modify) |
Field Summary | |
---|---|
static AngularVelocityUnits |
ARC_SECONDS_PER_DAY
Arcseconds per day. |
static AngularVelocityUnits |
MILLI_ARC_SECONDS_PER_YEAR
Milliarcseconds per year. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Returns true if o is equal to this units. |
static AngularVelocityUnits |
from(ArcUnits angleUnits,
TimeUnits timeUnits)
Returns angular velocity units for the given angle and time units. |
static AngularVelocityUnits |
fromString(String text)
Returns the angular velocity units represented by text . |
ArcUnits |
getArcUnits()
Returns the units of arc used by this unit of velocity. |
static AngularVelocityUnits |
getDefault()
Returns default units for angular velocity. |
static List<AngularVelocityUnits> |
getFrequentlyUsedUnits()
Returns a list of frequently used velocity units. |
String |
getSymbol()
Returns the symbol for this unit. |
TimeUnits |
getTimeUnits()
Returns the units of time used by this unit of velocity. |
int |
hashCode()
Returns a hash code for this units. |
String |
name()
Returns the name of this unit. |
boolean |
symbolsAreCaseSensitive()
Returns true if either the ArcUnits or TimeUnits
class has case-sensitive symbols. |
String |
toString()
Returns a text representation of this unit of angular velocity. |
BigDecimal |
toUnits(AngularVelocityUnits otherUnits)
Returns a factor for converting from this unit to otherUnits . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AngularVelocityUnits ARC_SECONDS_PER_DAY
public static final AngularVelocityUnits MILLI_ARC_SECONDS_PER_YEAR
Method Detail |
---|
public static AngularVelocityUnits from(ArcUnits angleUnits, TimeUnits timeUnits)
angleUnits
- units of arc, the numerator for the returned velocity units.timeUnits
- units of time, the denominator for the returned velocity units.
public static AngularVelocityUnits getDefault()
public static List<AngularVelocityUnits> getFrequentlyUsedUnits()
ArcUnits
and TimeUnits
.
public boolean symbolsAreCaseSensitive()
ArcUnits
or TimeUnits
class has case-sensitive symbols.
symbolsAreCaseSensitive
in interface Symbolic
public ArcUnits getArcUnits()
public TimeUnits getTimeUnits()
public BigDecimal toUnits(AngularVelocityUnits otherUnits)
otherUnits
.
otherUnits
- the unit to which conversion is desired.
otherUnits
.public String getSymbol()
getSymbol
in interface Symbolic
public String name()
toString()
is a better alternative.
public String toString()
toString
in class Object
public static AngularVelocityUnits fromString(String text)
text
.
Two basic formats for text are employed, both based on the
text representations of the component angle and time units.
The first is of the form
arcUnits.symbol / timeUnits.symbol.
The amount of space surrounding the "/" separator is not material;
zero or more spaces are allowed on either side of the separator.
The second is of the form
arcUnits.name per timeUnits.name.
The case of the separator "per" is not material. The same comment about
whitespace given above applies here as well.
The rules governing the format of the symbol or name of the component
units are given in
EnumerationUtility.enumFromString(Class, String)
.
text
- a text representation of a unit of linear velocity.
text
.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |