|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.support.Support
public abstract class Support
Provides general-purpose support functionality globally throughout the system. It is declared abstract to play a singleton role.
| Field Summary | |
|---|---|
static java.lang.String |
NEWLINE
newline |
| Constructor Summary | |
|---|---|
private |
Support()
Prevents subclassing and inadvertent instantiation. |
| Method Summary | |
|---|---|
static boolean |
areEqual(double value1,
double value2)
Determines whether two doubles are within 0.00001 of each other. |
static int |
round(double value)
Rounds a real value to an integer. |
static int |
roundFloor(double value)
Rounds a real value to an integer not less than 1. |
static int |
roundFloor(double value,
int floor)
Rounds a real value to an integer not less than a floor. |
static double |
roundTenth(double value)
Rounds a real value to a tenth. |
static int |
roundUp(double value)
Rounds up an integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NEWLINE
| Constructor Detail |
|---|
private Support()
| Method Detail |
|---|
public static boolean areEqual(double value1,
double value2)
value1 - - the first valuevalue2 - - the second value
public static int round(double value)
value - - the value
public static int roundFloor(double value)
value - - the value
public static int roundFloor(double value,
int floor)
value - - the valuefloor - - the floor
public static double roundTenth(double value)
value - - the value
public static int roundUp(double value)
value - - the value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||