|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 | |
private int |
_Flag
The value of the system flag (as a mask) for this SystemFlag. |
static int |
$_INDEX_ANY
|
static int |
$_INDEX_CGS
|
static int |
$_INDEX_CUSTOM
|
static int |
$_INDEX_IMP
|
static int |
$_INDEX_MAX
|
static int |
$_INDEX_NONE
|
static int |
$_INDEX_SI
|
static int |
$_INDEX_US
|
(package private) static SystemFlag |
$F_FLAG_ANY
|
(package private) static SystemFlag |
$F_FLAG_CGS
|
(package private) static SystemFlag |
$F_FLAG_IMP
|
(package private) static SystemFlag |
$F_FLAG_NONE
|
(package private) static SystemFlag |
$F_FLAG_SI
|
(package private) static String |
$S_SYSTEM_CGS
|
(package private) static String |
$S_SYSTEM_ENGLISH
|
(package private) static String |
$S_SYSTEM_IMPERIAL
|
(package private) static String |
$S_SYSTEM_SI
|
(package private) static String |
$S_SYSTEM_UD
|
private static int |
SystemIndex
Class field (global) to store the current system index. |
private static SystemFlag |
UnitsSystem
|
Constructor Summary | |
private |
SystemFlag(int flag)
Private Primary constructor. |
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 |
GetMatchingSystem(String system)
|
static int |
GetSysIndex()
|
static String[] |
GetSystemNames()
|
static String |
GetUnitSystemName()
|
private int |
intersection(SystemFlag other)
|
(package private) boolean |
isInSystem(int sysIndex)
|
(package private) boolean |
match(SystemFlag other)
|
static void |
setSysIndex(int system)
|
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 $_INDEX_NONE
public static final int $_INDEX_ANY
public static final int $_INDEX_SI
public static final int $_INDEX_CGS
public static final int $_INDEX_IMP
public static final int $_INDEX_US
public static final int $_INDEX_CUSTOM
public static final int $_INDEX_MAX
static final String $S_SYSTEM_SI
static final String $S_SYSTEM_CGS
static final String $S_SYSTEM_IMPERIAL
static final String $S_SYSTEM_ENGLISH
static final String $S_SYSTEM_UD
static final SystemFlag $F_FLAG_SI
static final SystemFlag $F_FLAG_CGS
static final SystemFlag $F_FLAG_IMP
static final SystemFlag $F_FLAG_ANY
static final SystemFlag $F_FLAG_NONE
private static int SystemIndex
private static SystemFlag UnitsSystem
private final int _Flag
Constructor Detail |
private SystemFlag(int flag)
flag
- the integer value which this flag will take.Method Detail |
public static String[] GetSystemNames()
public static String GetUnitSystemName()
public static SystemFlag valueOf(int sysIndex)
sysIndex
- a non-negative integer
public static void setSysIndex(int system)
public static int GetSysIndex()
public String toString()
final boolean match(SystemFlag other)
final boolean isInSystem(int sysIndex)
final SystemFlag getCommon(SystemFlag other)
final int getIndex()
protected final int getFlag()
private int intersection(SystemFlag other)
public static int GetMatchingSystem(String system)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |