Package org.apache.http.util
Class Args
- java.lang.Object
-
- org.apache.http.util.Args
-
public class Args extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Args()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
check(boolean expression, java.lang.String message)
static void
check(boolean expression, java.lang.String message, java.lang.Object arg)
static void
check(boolean expression, java.lang.String message, java.lang.Object... args)
static <T extends java.lang.CharSequence>
TcontainsNoBlanks(T argument, java.lang.String name)
static <T extends java.lang.CharSequence>
TnotBlank(T argument, java.lang.String name)
static <T extends java.lang.CharSequence>
TnotEmpty(T argument, java.lang.String name)
static int
notNegative(int n, java.lang.String name)
static long
notNegative(long n, java.lang.String name)
static <T> T
notNull(T argument, java.lang.String name)
static int
positive(int n, java.lang.String name)
static long
positive(long n, java.lang.String name)
-
-
-
Method Detail
-
check
public static void check(boolean expression, java.lang.String message)
-
check
public static void check(boolean expression, java.lang.String message, java.lang.Object... args)
-
check
public static void check(boolean expression, java.lang.String message, java.lang.Object arg)
-
notNull
public static <T> T notNull(T argument, java.lang.String name)
-
notEmpty
public static <T extends java.lang.CharSequence> T notEmpty(T argument, java.lang.String name)
-
notBlank
public static <T extends java.lang.CharSequence> T notBlank(T argument, java.lang.String name)
-
containsNoBlanks
public static <T extends java.lang.CharSequence> T containsNoBlanks(T argument, java.lang.String name)
-
notEmpty
public static <E,T extends java.util.Collection<E>> T notEmpty(T argument, java.lang.String name)
-
positive
public static int positive(int n, java.lang.String name)
-
positive
public static long positive(long n, java.lang.String name)
-
notNegative
public static int notNegative(int n, java.lang.String name)
-
notNegative
public static long notNegative(long n, java.lang.String name)
-
-