|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.rubecula.jquantity.SystemFlag
The immutable class SystemFlag represents a system of units.
Note that there are no non-private constructors. The values provided are fixed and immutable.
| Field Summary | |
(package private) static SystemFlag |
$Any
|
static int |
$IndexAny
|
static int |
$IndexCGS
|
static int |
$IndexCustom
|
static int |
$IndexImp
|
static int |
$IndexNone
|
static int |
$IndexSI
|
static int |
$IndexUS
|
(package private) static SystemFlag |
$None
|
(package private) static SystemFlag |
FlagCGS
|
(package private) static SystemFlag |
FlagImp
|
(package private) static SystemFlag |
FlagSI
|
static int |
MaxIndex
|
(package private) static java.lang.String |
SystemCGS
|
(package private) static java.lang.String |
SystemEnglish
|
(package private) static java.lang.String |
SystemImperial
|
(package private) static java.lang.String |
SystemSI
|
(package private) static java.lang.String |
SystemUD
|
(package private) static SystemFlag |
UnitsSystem
|
| Method Summary | |
(package private) SystemFlag |
getCommon(SystemFlag other)
|
protected int |
getFlag()
Method to get the integer value of this flag. |
(package private) int |
getIndex()
|
static int |
GetSysIndex()
|
static java.lang.String[] |
GetSystemNames()
|
static java.lang.String |
GetUnitSystemName()
|
(package private) boolean |
isInSystem(int sysIndex)
|
(package private) boolean |
match(SystemFlag other)
|
static void |
setSysIndex(int system)
|
java.lang.String |
toString()
|
static SystemFlag |
valueOf(int sysIndex)
Factory method to create a SystemFlag for system index defined by sysIndex |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int $IndexNone
public static final int $IndexAny
public static final int $IndexSI
public static final int $IndexImp
public static final int $IndexCGS
public static final int $IndexUS
public static final int $IndexCustom
public static final int MaxIndex
static final java.lang.String SystemSI
static final java.lang.String SystemCGS
static final java.lang.String SystemImperial
static final java.lang.String SystemEnglish
static final java.lang.String SystemUD
static final SystemFlag FlagSI
static final SystemFlag FlagCGS
static final SystemFlag FlagImp
static final SystemFlag $Any
static final SystemFlag $None
static SystemFlag UnitsSystem
| Method Detail |
public static java.lang.String[] GetSystemNames()
public static java.lang.String GetUnitSystemName()
public static SystemFlag valueOf(int sysIndex)
sysIndex - a non-negative integer
public static void setSysIndex(int system)
public static int GetSysIndex()
public java.lang.String toString()
toString in class java.lang.Objectfinal boolean match(SystemFlag other)
final boolean isInSystem(int sysIndex)
final SystemFlag getCommon(SystemFlag other)
final int getIndex()
protected final int getFlag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||