Argument validation

Describes how and when to validate arguments

When

Arguments need to be validated if they the methods are public available. In this case the method needs to protect themselves from inappropriate use of the operation. Especially in case where data is store for later use (f.ex. as instance variables) it is important to validate the arguments before using them, as later errors caused by the invalidate data can be very difficult to debug.  

More concretely this means that all public methods in public class needs to be validated. 

How

Use the ArgumentValidator class.