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
Modifier and TypeMethodDescriptionbooleanChecks if at least one of the arguments is null.<T> Tget(int i) Returns the specified argumentdefault booleangetAsBoolean(int i) Returns the specified argument as aboolean.default bytegetAsByte(int i) Returns the specified argument as abyte.default doublegetAsDouble(int i) Returns the specified argument as adouble.default floatgetAsFloat(int i) Returns the specified argument as afloat.default intgetAsInt(int i) Returns the specified argument as aint.default longgetAsLong(int i) Returns the specified argument as along.default shortgetAsShort(int i) Returns the specified argument as ashort.Returns the protocol versionvoidset(int i, ByteBuffer buffer) Sets the specified value to the argumentsintsize()Returns the current number of arguments.
-
Method Details
-
set
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:
trueif at least one of the arguments is null,falseotherwise.
-
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.
-