org.apache.myfaces.trinidad.util

## Class Args

- java.lang.Object
- - org.apache.myfaces.trinidad.util.Args

-     public final class Args
      extends Object

  Argument processing utilities.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> T` | `notNull(T arg, String argName)` Ensures that the specified argument is not null.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### notNull

          public static <T> T notNull(T arg,
                      String argName)

      Ensures that the specified argument is not null. If the value is null, an IllegalArgumentException is thrown.
      Parameters:
        `arg` - the value to test
        `argName` - the name of the argument (for logging purposes)
      Returns:
        the argument value, if not null

Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.