All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface collections.Assertable

public interface interface Assertable
Assertable is an interface for classes possessing an assert method that raises an exception if a boolean argument is false.


Method Index

 o assert(boolean)
Raise an exception if predicate is false.

Methods

 o assert
 public abstract void assert(boolean predicate) throws ImplementationError
Raise an exception if predicate is false. Suggested default implementation is:
 {
  ImplementationError.assert(this, predicate);
 }
 
This method should either return normally or throw:

Throws: ImplementationError
if predicate is false.

All Packages  Class Hierarchy  This Package  Previous  Next  Index