Package org.mozilla.jss.util
Class Assert
java.lang.Object
org.mozilla.jss.util.Assert
C-style assertions in Java.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void_assert(boolean cond) Deprecated.The assert keyword should be used instead.static voidDeprecated.The assert keyword should be used instead.static voidThrow an AssertionException if this statement is reached.static voidnotReached(String msg) Throw an AssertionException if this statement is reached.static voidnotYetImplemented(String msg) Throw an AssertionException because functionality is not yet implemented.
-
Constructor Details
-
Assert
public Assert()
-
-
Method Details
-
_assert
Deprecated.The assert keyword should be used instead.Assert that a condition is true. If it is not true, abort by throwing an AssertionException.- Parameters:
cond- The condition that is being tested.
-
_assert
Deprecated.The assert keyword should be used instead.Assert that a condition is true. If it is not true, abort by throwing an AssertionException.- Parameters:
cond- The condition that is being tested.msg- A message describing what is wrong if the condition is false.
-
notReached
Throw an AssertionException if this statement is reached.- Parameters:
msg- A message describing what was reached.
-
notReached
public static void notReached()Throw an AssertionException if this statement is reached. -
notYetImplemented
Throw an AssertionException because functionality is not yet implemented.- Parameters:
msg- A message describing what is not implemented.
-