Assert is useful for for embedding runtime sanity checks
in code. The predicate methods all test a condition and throw some
type of unchecked exception if the condition does not hold.
Assertion failure exceptions, like most runtime exceptions, are
thrown when something is misbehaving. Assertion failures are invariably
unspecified behavior; consequently, clients should never rely on
these being thrown (and certainly should not being catching them
specifically).
This class can be used without OSGi running.
This class is not intended to be instantiated or sub-classed by clients.
Assertis useful for for embedding runtime sanity checks in code. The predicate methods all test a condition and throw some type of unchecked exception if the condition does not hold.Assertion failure exceptions, like most runtime exceptions, are thrown when something is misbehaving. Assertion failures are invariably unspecified behavior; consequently, clients should never rely on these being thrown (and certainly should not being catching them specifically).
This class can be used without OSGi running.
This class is not intended to be instantiated or sub-classed by clients.