Package org.mozilla.jss.util
Class Assert
- java.lang.Object
-
- org.mozilla.jss.util.Assert
-
public class Assert extends java.lang.Object
C-style assertions in Java.- See Also:
AssertionException
-
-
Constructor Summary
Constructors Constructor Description Assert()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
_assert(boolean cond)
Deprecated.The assert keyword should be used instead.static void
_assert(boolean cond, java.lang.String msg)
Deprecated.The assert keyword should be used instead.static void
notReached()
Throw an AssertionException if this statement is reached.static void
notReached(java.lang.String msg)
Throw an AssertionException if this statement is reached.static void
notYetImplemented(java.lang.String msg)
Throw an AssertionException because functionality is not yet implemented.
-
-
-
Method Detail
-
_assert
@Deprecated public static void _assert(boolean cond)
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 public static void _assert(boolean cond, java.lang.String msg)
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
public static void notReached(java.lang.String msg)
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
public static void notYetImplemented(java.lang.String msg)
Throw an AssertionException because functionality is not yet implemented.- Parameters:
msg
- A message describing what is not implemented.
-
-