Pre

public final class Pre

Pre conditions exceptions.

Methods

notNull

public static void notNull(Object value, String name)

Verify that a value is not null.

Parameters:
  • value – the value to verify
  • name – the name of the value that will be used in the exception message.