Interface Arguments
-
- All Known Implementing Classes:
FunctionArguments
public interface Arguments
The input arguments to a function.The class can be reused for calling the same function multiple times.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
containsNulls()
Checks if at least one of the arguments is null.<T> T
get(int i)
Returns the specified argumentdefault boolean
getAsBoolean(int i)
Returns the specified argument as aboolean
.default byte
getAsByte(int i)
Returns the specified argument as abyte
.default double
getAsDouble(int i)
Returns the specified argument as adouble
.default float
getAsFloat(int i)
Returns the specified argument as afloat
.default int
getAsInt(int i)
Returns the specified argument as aint
.default long
getAsLong(int i)
Returns the specified argument as along
.default short
getAsShort(int i)
Returns the specified argument as ashort
.ProtocolVersion
getProtocolVersion()
Returns the protocol versionvoid
set(int i, java.nio.ByteBuffer buffer)
Sets the specified value to the argumentsint
size()
Returns the current number of arguments.
-
-
-
Method Detail
-
set
void set(int i, java.nio.ByteBuffer buffer)
Sets the specified value to the arguments- Parameters:
i
- the argument positionbuffer
- the serialized argument
-
containsNulls
boolean containsNulls()
Checks if at least one of the arguments is null.- Returns:
true
if at least one of the arguments is null,false
otherwise.
-
get
<T> T get(int i)
Returns the specified argument- Parameters:
i
- the argument index- Returns:
- the specified argument
-
getProtocolVersion
ProtocolVersion getProtocolVersion()
Returns the protocol version- Returns:
- the protocol version
-
getAsBoolean
default boolean getAsBoolean(int i)
Returns the specified argument as aboolean
.- Parameters:
i
- the argument index- Returns:
- the specified argument as a
boolean
-
getAsByte
default byte getAsByte(int i)
Returns the specified argument as abyte
.- Parameters:
i
- the argument index- Returns:
- the specified argument as a
byte
-
getAsShort
default short getAsShort(int i)
Returns the specified argument as ashort
.- Parameters:
i
- the argument index- Returns:
- the specified argument as a
short
-
getAsInt
default int getAsInt(int i)
Returns the specified argument as aint
.- Parameters:
i
- the argument index- Returns:
- the specified argument as a
int
-
getAsLong
default long getAsLong(int i)
Returns the specified argument as along
.- Parameters:
i
- the argument index- Returns:
- the specified argument as a
long
-
getAsFloat
default float getAsFloat(int i)
Returns the specified argument as afloat
.- Parameters:
i
- the argument index- Returns:
- the specified argument as a
float
-
getAsDouble
default double getAsDouble(int i)
Returns the specified argument as adouble
.- Parameters:
i
- the argument index- Returns:
- the specified argument as a
double
-
size
int size()
Returns the current number of arguments.- Returns:
- the current number of arguments.
-
-