@Private
public class Contracts
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static double |
checkArg(double arg,
boolean expression,
java.lang.Object msg) |
Check an argument for false conditions
|
static float |
checkArg(float arg,
boolean expression,
java.lang.Object msg) |
Check an argument for false conditions
|
static int |
checkArg(int arg,
boolean expression,
java.lang.Object msg) |
Check an argument for false conditions
|
static long |
checkArg(long arg,
boolean expression,
java.lang.Object msg) |
Check an argument for false conditions
|
static <T> T |
checkArg(T arg,
boolean expression,
java.lang.Object msg) |
Check an argument for false conditions
|
public static <T> T checkArg(T arg,
boolean expression,
java.lang.Object msg)
T - type of the argumentarg - the argument to checkexpression - the boolean expression for the conditionmsg - the error message if expression is falsepublic static int checkArg(int arg,
boolean expression,
java.lang.Object msg)
arg - the argument to checkexpression - the boolean expression for the conditionmsg - the error message if expression is falsepublic static long checkArg(long arg,
boolean expression,
java.lang.Object msg)
arg - the argument to checkexpression - the boolean expression for the conditionmsg - the error message if expression is falsepublic static float checkArg(float arg,
boolean expression,
java.lang.Object msg)
arg - the argument to checkexpression - the boolean expression for the conditionmsg - the error message if expression is falsepublic static double checkArg(double arg,
boolean expression,
java.lang.Object msg)
arg - the argument to checkexpression - the boolean expression for the conditionmsg - the error message if expression is falseCopyright © 2008–2025 Apache Software Foundation. All rights reserved.