Class Contracts


  • public final class Contracts
    extends Object
    An helper class providing useful assertion methods.
    Author:
    Kevin Pollet (C) 2011 SERLI
    • Method Detail

      • assertNotNull

        public static void assertNotNull​(Object param,
                                         String message)
        Asserts that the given parameter is not null.
        Parameters:
        param - the parameter to check.
        message - the exception message used if the parameter to check is null.
        Throws:
        NullPointerException - if the given parameter is null.