![]() |
org.mozilla.util
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
static void |
greaterThan(double aDouble,
double minimum)
Throws RangeException if 'aDouble' is not greater than 'minimum'; otherwise, does nothing. |
static void |
greaterThan(int anInt,
int minimum)
Throws RangeException if 'anInt' is not greater than 'minimum'; otherwise, does nothing. |
static void |
isFalse(boolean generalTest,
java.lang.String message)
Identical to isTrue, except the test is inverted. |
static void |
isTrue(boolean generalTest,
java.lang.String message)
Throws IllegalArgumentException if 'generalTest' is false; otherwise, does nothing. |
static void |
lessThan(double aDouble,
double maximum)
Throws RangeException if 'aDouble' is not less than 'maximum'; otherwise, does nothing. |
static void |
lessThan(int anInt,
int maximum)
Throws RangeException if 'anInt' is not less than 'maximum'; otherwise, does nothing. |
static void |
noGreaterThan(double aDouble,
double maximum)
Throws RangeException if 'aDouble' is greater than 'maximum'; otherwise, does nothing. |
static void |
noGreaterThan(int anInt,
int maximum)
Throws RangeException if 'anInt' is greater than 'maximum'; otherwise, does nothing. |
static void |
noLessThan(double aDouble,
double minimum)
Throws RangeException if 'aDouble' is less than 'minimum'; otherwise, does nothing. |
static void |
noLessThan(int anInt,
int minimum)
Throws RangeException if 'anInt' is less than 'minimum'; otherwise, does nothing. |
static void |
nonNull(java.lang.Object anObject)
Throws IllegalArgumentException if 'anObject' is null; otherwise, does nothing. |
static void |
notEmpty(java.lang.String aString)
Throws IllegalArgumentException if 'aString' is null or if 'aString' is an empty string; otherwise, does nothing. |
static void |
rangeWithinBounds(Range aRange,
int minimum,
int maximum)
Throws RangeException if 'aRange' is not completely between 'minimum' and 'maximum', inclusive; otherwise, does nothing. |
static void |
rangeWithinCount(Range aRange,
int count)
Throws RangeException if 'aRange' is not completely within a sequence that starts at 0 and has a length of 'count'; otherwise does nothing. |
static void |
rangeWithinString(Range aRange,
java.lang.String aString)
Checks a string and a range which is intended to indicate a substring. |
static void |
withinCount(int anInt,
int count)
Throws RangeException if 'anInt' is not within a sequence that starts at 0 and has a length of 'count'; otherwise does nothing. |
static void |
withinRange(double aDouble,
double minimum,
double maximum)
Throws RangeException if 'aDouble' is less than 'minimum' or greater than 'maximum'; otherwise, does nothing. |
static void |
withinRange(int anInt,
int minimum,
int maximum)
Throws RangeException if 'anInt' is less than 'minimum' or greater than 'maximum'; otherwise, does nothing. |
static void |
withinRange(int anInt,
Range aRange)
Throws RangeException if 'anInt' is not within 'aRange'; otherwise, does nothing. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static void nonNull(java.lang.Object anObject)
anObject - value to verify as non-nullpublic static void notEmpty(java.lang.String aString)
aString - string to verify as non-null and not empty
public static void noLessThan(int anInt,
int minimum)
anInt - value to verify as not less than 'minimum'minimum - smallest acceptable value for 'anInt'
public static void greaterThan(int anInt,
int minimum)
anInt - value to verify as greater than 'minimum'minimum - largest unacceptable value for 'anInt'
public static void noGreaterThan(int anInt,
int maximum)
anInt - value to verify as not greater than 'maximum'maximum - largest acceptable value for 'anInt'
public static void lessThan(int anInt,
int maximum)
anInt - value to verify as less than 'minimum'maximum - smallest unacceptable value for 'anInt'
public static void noLessThan(double aDouble,
double minimum)
aDouble - value to verify as not less than 'minimum'minimum - smallest acceptable value for 'aDouble'
public static void greaterThan(double aDouble,
double minimum)
aDouble - value to verify as greater than 'minimum'minimum - largest unacceptable value for 'aDouble'
public static void noGreaterThan(double aDouble,
double maximum)
aDouble - value to verify as not greater than 'maximum'maximum - largest acceptable value for 'aDouble'
public static void lessThan(double aDouble,
double maximum)
aDouble - value to verify as less than 'minimum'maximum - smallest unacceptable value for 'aDouble'
public static void withinRange(int anInt,
int minimum,
int maximum)
anInt - value to verify as not greater than 'maximum' and
not less than 'minimum'minimum - smallest acceptable value for 'anInt'maximum - largest acceptable value for 'anInt'
public static void withinRange(double aDouble,
double minimum,
double maximum)
aDouble - value to verify as not greater than 'maximum' and
not less than 'minimum'minimum - smallest acceptable value for 'aDouble'maximum - largest acceptable value for 'aDouble'
public static void withinRange(int anInt,
Range aRange)
anInt - value to verify as within 'aRange'aRange - acceptable range for 'anInt'
public static void withinCount(int anInt,
int count)
anInt - value to verify as between 0 and 'count' - 1, inclusivecount - length of sequencepublic static void rangeWithinBounds(Range aRange, int minimum, int maximum)
aRange - range to verify as between 'minimum' and 'maximum'minimum - smallest acceptable index in 'aRange'maximum - largest acceptable index in 'aRange'public static void rangeWithinCount(Range aRange, int count)
aRange - range to verify as between 0 and 'count' - 1, inclusivecount - length of sequencepublic static void rangeWithinString(Range aRange, java.lang.String aString)
aRange - A range which must be contained within
the string.aString - A string to use for verifying the range.
public static void isTrue(boolean generalTest,
java.lang.String message)
generalTest - value to verify as truemessage - message describing the failureisFalse(boolean generalTest, String message)
public static void isFalse(boolean generalTest,
java.lang.String message)
generalTest - value to verify as falsemessage - message describing the failureisTrue(boolean generalTest, String message)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||