java.lang.Object
net.i2p.apache.http.util.Args

public class Argsextends Object
Utility class for method argument validation.
  • Constructor Details

    • Args

      private Args()
      Utility class, no instances.
  • Method Details

    • notNull

      public static <T> T notNull(T argument, String name)
      Check that an argument is not null.
      Type Parameters:
      T - the argument type
      Parameters:
      argument - the argument to check
      name - the argument name
      Returns:
      the argument if not null