jET
1.0beta1


prv.doman.util
Class DegreeFormatSymbols

java.lang.Object
  |
  +--prv.doman.util.DegreeFormatSymbols

public class DegreeFormatSymbols
extends java.lang.Object

Defines special symbols for degree format under specified locale.


Constructor Summary
DegreeFormatSymbols()
          Creates instance of degree format symbols with default locale.
DegreeFormatSymbols(java.util.Locale locale)
          Creates instance of degree format symbols with specified locale.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks if symbols matches together.
 char getDecimalSeparator()
          Gets decimal separator.
 char getDegree()
          Gets degree symbol.
 char getMinute()
          Gets minute symbol.
 char getSecond()
          Gets the second symbol.
 int hashCode()
          Rehashes object.
 void setDecimalSeparator(char ch)
          Sets decimal separator.
 void setDegree(char ch)
          Sets degree symbol.
 void setMinute(char ch)
          Sets minute symbol.
 void setSecond(char ch)
          Sets the second symbol.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DegreeFormatSymbols

public DegreeFormatSymbols()
Creates instance of degree format symbols with default locale.


DegreeFormatSymbols

public DegreeFormatSymbols(java.util.Locale locale)
Creates instance of degree format symbols with specified locale.

Parameters:
locale - Locale.
Method Detail

setDecimalSeparator

public void setDecimalSeparator(char ch)
Sets decimal separator. It divides a number to integer and fractional parts.

Parameters:
ch - Character to be used as decimal separator.

getDecimalSeparator

public char getDecimalSeparator()
Gets decimal separator. It divides a number to integer and fractional parts.

Returns:
Character used as decimal separator.

setDegree

public void setDegree(char ch)
Sets degree symbol.

Parameters:
ch - Character to be used as degree symbol.

getDegree

public char getDegree()
Gets degree symbol.

This method is not locale dependent. The default value is Unicode symbol Degree Sign ° (\u00B0).

Returns:
Character for degree.

setMinute

public void setMinute(char ch)
Sets minute symbol.

Parameters:
ch - Character to be used as minute symbol.

getMinute

public char getMinute()
Gets minute symbol.

This method is not locale dependent. The default symbol for this is Unicode Prime (\u2032).

Returns:
Character used as minute symbol.

setSecond

public void setSecond(char ch)
Sets the second symbol.

Parameters:
ch - Character to be used for second symbol.

getSecond

public char getSecond()
Gets the second symbol.

The method is not locale dependent. The default value for this is Unicode Double Prime symbol (\u2033).

Returns:
Character used as second symbol.

equals

public boolean equals(java.lang.Object obj)
Checks if symbols matches together.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Rehashes object.

Overrides:
hashCode in class java.lang.Object

jET
1.0beta1