Package org.antublue.test.engine.api
Interface Argument<T>
- Type Parameters:
T- the type of the payload
public interface Argument<T>
Named is a container that associates a name with a given payload.- Since:
- 5.8
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Method to get the Argument nameMethod to get the Argument payloadstatic <T> Argument<T> Method to create an Argument of type Tstatic Argument<BigDecimal> ofBigDecimal(BigDecimal value) Method to create an Argument of type BigDecimalstatic Argument<BigInteger> ofBigInteger(BigInteger value) Method to create an Argument of type BigIntegerofBoolean(boolean value) Method to create an Argument of type booleanofByte(byte value) Method to create an Argument of type byteofChar(char value) Method to create an Argument of type charofDouble(double value) Method to create an Argument of type doubleofFloat(float value) Method to create an Argument of type floatofInt(int value) Method to create an Argument of type intofLong(long value) Method to create an Argument of type longofShort(short value) Method to create an Argument of type shortMethod to create an Argument of type String
-
Method Details
-
ofBoolean
Method to create an Argument of type boolean- Parameters:
value- value- Returns:
- an Argument
-
ofByte
Method to create an Argument of type byte- Parameters:
value- value- Returns:
- an Argument
-
ofChar
Method to create an Argument of type char- Parameters:
value- value- Returns:
- an Argument
-
ofShort
Method to create an Argument of type short- Parameters:
value- value- Returns:
- an Argument
-
ofInt
Method to create an Argument of type int- Parameters:
value- value- Returns:
- an Argument
-
ofLong
Method to create an Argument of type long- Parameters:
value- value- Returns:
- an Argument
-
ofFloat
Method to create an Argument of type float- Parameters:
value- value- Returns:
- an Argument
-
ofDouble
Method to create an Argument of type double- Parameters:
value- value- Returns:
- an Argument
-
ofString
Method to create an Argument of type String- Parameters:
value- value- Returns:
- an Argument
-
ofBigInteger
Method to create an Argument of type BigInteger- Parameters:
value- value- Returns:
- an Argument
-
ofBigDecimal
Method to create an Argument of type BigDecimal- Parameters:
value- value- Returns:
- an Argument
-
of
Method to create an Argument of type T- Type Parameters:
T- type T- Parameters:
name- namepayload- payload- Returns:
- an Argument
-
getName
String getName()Method to get the Argument name- Returns:
- the Argument name
-
getPayload
T getPayload()Method to get the Argument payload- Returns:
- the Argument payload
-