Interface Tuple
-
- All Known Subinterfaces:
Row
public interface TupleA general purpose tuple.CAUTION: indexes start at 0, not at 1.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TupleaddArrayOfBigDecimal(BigDecimal[] value)Add an array ofBigDecimalvalue at the end of the tuple.default TupleaddArrayOfBoolean(Boolean[] value)Add an array ofBooleanvalue at the end of the tuple.default TupleaddArrayOfBuffer(Buffer[] value)Add an array ofBuffervalue at the end of the tuple.default TupleaddArrayOfDouble(Double[] value)Add an array ofDoublevalue at the end of the tuple.default TupleaddArrayOfFloat(Float[] value)Add an array ofFloatvalue at the end of the tuple.default TupleaddArrayOfInteger(Integer[] value)Add an array ofIntegervalue at the end of the tuple.default TupleaddArrayOfJsonArray(JsonArray[] value)Add an array ofJsonArrayvalue at the end of the tuple.default TupleaddArrayOfJsonObject(JsonObject[] value)Add an array ofJsonObjectvalue at the end of the tuple.default TupleaddArrayOfLocalDate(LocalDate[] value)Add an array ofLocalDatevalue at the end of the tuple.default TupleaddArrayOfLocalDateTime(LocalDateTime[] value)Add an array ofLocalDateTimevalue at the end of the tuple.default TupleaddArrayOfLocalTime(LocalTime[] value)Add an array ofLocalTimevalue at the end of the tuple.default TupleaddArrayOfLong(Long[] value)Add an array ofLongvalue at the end of the tuple.default TupleaddArrayOfOffsetDateTime(OffsetDateTime[] value)Add an array ofOffsetDateTimevalue at the end of the tuple.default TupleaddArrayOfOffsetTime(OffsetTime[] value)Add an array ofOffsetTimevalue at the end of the tuple.default TupleaddArrayOfShort(Short[] value)Add an array ofShortvalue at the end of the tuple.default TupleaddArrayOfString(String[] value)Add an array ofStringvalue at the end of the tuple.default TupleaddArrayOfTemporal(Temporal[] value)Add an array ofTemporalvalue at the end of the tuple.default TupleaddArrayOfUUID(UUID[] value)Add an array ofUUIDvalue at the end of the tuple.default TupleaddBigDecimal(BigDecimal value)Add aBigDecimalvalue at the end of the tuple.default TupleaddBoolean(Boolean value)Add a boolean value at the end of the tuple.default TupleaddBuffer(Buffer value)Add a buffer value at the end of the tuple.default TupleaddDouble(Double value)Add a double value at the end of the tuple.default TupleaddFloat(Float value)Add a float value at the end of the tuple.default TupleaddInteger(Integer value)Add an integer value at the end of the tuple.default TupleaddJsonArray(JsonArray value)Add aJsonArrayvalue at the end of the tuple.default TupleaddJsonObject(JsonObject value)Add aJsonObjectvalue at the end of the tuple.default TupleaddLocalDate(LocalDate value)Add aLocalDatevalue at the end of the tuple.default TupleaddLocalDateTime(LocalDateTime value)Add aLocalDateTimevalue at the end of the tuple.default TupleaddLocalTime(LocalTime value)Add aLocalTimevalue at the end of the tuple.default TupleaddLong(Long value)Add a long value at the end of the tuple.default TupleaddOffsetDateTime(OffsetDateTime value)Add aOffsetDateTimevalue at the end of the tuple.default TupleaddOffsetTime(OffsetTime value)Add aOffsetTimevalue at the end of the tuple.default TupleaddShort(Short value)Add a short value at the end of the tuple.default TupleaddString(String value)Add a string value at the end of the tuple.default TupleaddTemporal(Temporal value)Add aTemporalvalue at the end of the tuple.default TupleaddUUID(UUID value)Add aUUIDvalue at the end of the tuple.TupleaddValue(Object value)Add an object value at the end of the tuple.voidclear()default StringdeepToString()static Tuplefrom(Object[] array)Wrap the providedarraywith a tuple.static <T> Tuplefrom(List<T> list)Wrap the providedlistwith a tuple.default <T> Tget(Class<T> type, int position)Get the the at the specifiedpositionand the specifiedtype.default BigDecimal[]getArrayOfBigDecimals(int pos)Get an array ofBigDecimalvalue atpos.default Boolean[]getArrayOfBooleans(int pos)Get an array ofBooleanvalue atpos.default Buffer[]getArrayOfBuffers(int pos)Get an array ofBuffervalue atpos.default Double[]getArrayOfDoubles(int pos)Get an array ofDoublevalue atpos.default Float[]getArrayOfFloats(int pos)Get an array ofFloatvalue atpos.default Integer[]getArrayOfIntegers(int pos)Get an array ofIntegervalue atpos.default JsonArray[]getArrayOfJsonArrays(int pos)Get an array ofJsonArrayvalue atpos.default JsonObject[]getArrayOfJsonObjects(int pos)Get an array ofJsonObjectvalue atpos.default Object[]getArrayOfJsons(int pos)Get an array of JSON elements atpos, the element might benullor one of the following types: String Number JsonObject JsonArray Booleandefault LocalDate[]getArrayOfLocalDates(int pos)Get an array ofLocalDatevalue atpos.default LocalDateTime[]getArrayOfLocalDateTimes(int pos)Get an array ofLocalDateTimevalue atpos.default LocalTime[]getArrayOfLocalTimes(int pos)Get an array ofLocalTimevalue atpos.default Long[]getArrayOfLongs(int pos)Get an array ofLongvalue atpos.default Numeric[]getArrayOfNumerics(int pos)Get an array ofNumericvalue atpos.default OffsetDateTime[]getArrayOfOffsetDateTimes(int pos)Get an array ofOffsetDateTimevalue atpos.default OffsetTime[]getArrayOfOffsetTimes(int pos)Get an array ofOffsetTimevalue atpos.default Short[]getArrayOfShorts(int pos)Get an array ofShortvalue atpos.default String[]getArrayOfStrings(int pos)Get an array ofStringvalue atpos.default Temporal[]getArrayOfTemporals(int pos)Get an array ofTemporalvalue atpos.default UUID[]getArrayOfUUIDs(int pos)Get an array ofUUIDvalue atpos.default BigDecimalgetBigDecimal(int pos)GetBigDecimalvalue atpos.default BooleangetBoolean(int pos)Get a boolean value atpos.default BuffergetBuffer(int pos)Get a buffer value atpos.default DoublegetDouble(int pos)Get a double value atpos.default FloatgetFloat(int pos)Get a float value atpos.default IntegergetInteger(int pos)Get an integer value atpos.default ObjectgetJson(int pos)Get a JSON element atpos, the element might benullor one of the following types: String Number JsonObject JsonArray Booleandefault JsonArraygetJsonArray(int pos)Get aJsonArrayvalue atpos.default JsonObjectgetJsonObject(int pos)Get aJsonObjectvalue atpos.default LocalDategetLocalDate(int pos)GetLocalDatevalue atpos.default LocalDateTimegetLocalDateTime(int pos)GetLocalDateTimevalue atpos.default LocalTimegetLocalTime(int pos)GetLocalTimevalue atpos.default LonggetLong(int pos)Get a long value atpos.default NumericgetNumeric(int pos)GetNumericvalue atpos.default OffsetDateTimegetOffsetDateTime(int pos)GetOffsetDateTimevalue atpos.default OffsetTimegetOffsetTime(int pos)GetOffsetTimevalue atpos.default ShortgetShort(int pos)Get a short value atpos.default StringgetString(int pos)Get a string value atpos.default TemporalgetTemporal(int pos)Get aTemporalvalue atpos.default UUIDgetUUID(int pos)GetUUIDvalue atpos.ObjectgetValue(int pos)Get an object value atpos.static Tupleof(Object elt1)Create a tuple of one element.static Tupleof(Object elt1, Object elt2)Create a tuple of two elements.static Tupleof(Object elt1, Object... elts)Create a tuple of an arbitrary number of elements.static Tupleof(Object elt1, Object elt2, Object elt3)Create a tuple of three elements.static Tupleof(Object elt1, Object elt2, Object elt3, Object elt4)Create a tuple of four elements.static Tupleof(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5)Create a tuple of five elements.static Tupleof(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5, Object elt6)Create a tuple of six elements.intsize()static Tupletuple()static Tupletuple(List<Object> elements)Create a tuple with the providedelementslist.List<Class<?>>types()static Tuplewrap(Object[] array)Wrap the providedarraywith a tuple.static <T> Tuplewrap(List<T> list)Wrap the providedlistwith a tuple.
-
-
-
Field Detail
-
JSON_NULL
static final Object JSON_NULL
The JSON null literal value.
It is used to distinguish a JSON null literal value from the Javanullvalue. This is only used when the database supports JSON types.
-
-
Method Detail
-
tuple
static Tuple tuple()
- Returns:
- a new empty tuple
-
from
static <T> Tuple from(List<T> list)
Wrap the providedlistwith a tuple.
The list is not copied and is used as store for tuple elements.- Returns:
- the list wrapped as a tuple
-
from
static Tuple from(Object[] array)
Wrap the providedarraywith a tuple.
The array is not copied and is used as store for tuple elements.- Returns:
- the list wrapped as a tuple
-
wrap
static <T> Tuple wrap(List<T> list)
Wrap the providedlistwith a tuple.
The list is not copied and is used as store for tuple elements.
Note: The list might be modified and users should usetuple(List)if the list is unmodifiable- Returns:
- the list wrapped as a tuple
-
wrap
static Tuple wrap(Object[] array)
Wrap the providedarraywith a tuple.
The array is not copied and is used as store for tuple elements.- Returns:
- the list wrapped as a tuple
-
of
static Tuple of(Object elt1)
Create a tuple of one element.- Parameters:
elt1- the first value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2)
Create a tuple of two elements.- Parameters:
elt1- the first valueelt2- the second value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3)
Create a tuple of three elements.- Parameters:
elt1- the first valueelt2- the second valueelt3- the third value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4)
Create a tuple of four elements.- Parameters:
elt1- the first valueelt2- the second valueelt3- the third valueelt4- the fourth value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5)
Create a tuple of five elements.- Parameters:
elt1- the first valueelt2- the second valueelt3- the third valueelt4- the fourth valueelt5- the fifth value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5, Object elt6)
Create a tuple of six elements.- Parameters:
elt1- the first valueelt2- the second valuegelt3- the third valueelt4- the fourth valueelt5- the fifth valueelt6- the sixth value- Returns:
- the tuple
-
of
static Tuple of(Object elt1, Object... elts)
Create a tuple of an arbitrary number of elements.- Parameters:
elt1- the first elementelts- the remaining elements- Returns:
- the tuple
-
tuple
static Tuple tuple(List<Object> elements)
Create a tuple with the providedelementslist. Theelementslist is not modified.- Parameters:
elements- the list of elements- Returns:
- the tuple
-
getValue
Object getValue(int pos)
Get an object value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getBoolean
default Boolean getBoolean(int pos)
Get a boolean value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getShort
default Short getShort(int pos)
Get a short value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getInteger
default Integer getInteger(int pos)
Get an integer value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getLong
default Long getLong(int pos)
Get a long value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getFloat
default Float getFloat(int pos)
Get a float value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getDouble
default Double getDouble(int pos)
Get a double value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getNumeric
default Numeric getNumeric(int pos)
GetNumericvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getString
default String getString(int pos)
Get a string value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getJsonObject
default JsonObject getJsonObject(int pos)
Get aJsonObjectvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getJsonArray
default JsonArray getJsonArray(int pos)
Get aJsonArrayvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getJson
default Object getJson(int pos)
Get a JSON element atpos, the element might benullor one of the following types:- String
- Number
- JsonObject
- JsonArray
- Boolean
- Parameters:
pos- the position- Returns:
- the value
-
getTemporal
default Temporal getTemporal(int pos)
Get aTemporalvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getLocalDate
default LocalDate getLocalDate(int pos)
- Parameters:
pos- the position- Returns:
- the value
-
getLocalTime
default LocalTime getLocalTime(int pos)
- Parameters:
pos- the position- Returns:
- the value
-
getLocalDateTime
default LocalDateTime getLocalDateTime(int pos)
GetLocalDateTimevalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getOffsetTime
default OffsetTime getOffsetTime(int pos)
GetOffsetTimevalue atpos.Target element instance of
OffsetDateTimewill be coerced toOffsetTime.- Parameters:
pos- the position- Returns:
- the value
-
getOffsetDateTime
default OffsetDateTime getOffsetDateTime(int pos)
GetOffsetDateTimevalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getBuffer
default Buffer getBuffer(int pos)
Get a buffer value atpos.- Parameters:
pos- the position- Returns:
- the value
-
getUUID
default UUID getUUID(int pos)
GetUUIDvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getBigDecimal
default BigDecimal getBigDecimal(int pos)
GetBigDecimalvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfBooleans
default Boolean[] getArrayOfBooleans(int pos)
Get an array ofBooleanvalue atpos.Target element instance of
Object[]will be coerced toBoolean[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfShorts
default Short[] getArrayOfShorts(int pos)
Get an array ofShortvalue atpos.Target element instance of
Number[]orObject[]will be coerced toShort[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfIntegers
default Integer[] getArrayOfIntegers(int pos)
Get an array ofIntegervalue atpos.Target element instance of
Number[]orObject[]will be coerced toInteger[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfLongs
default Long[] getArrayOfLongs(int pos)
Get an array ofLongvalue atpos.Target element instance of
Number[]orObject[]will be coerced toLong[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfFloats
default Float[] getArrayOfFloats(int pos)
Get an array ofFloatvalue atpos.Target element instance of
Number[]orObject[]will be coerced toFloat[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfDoubles
default Double[] getArrayOfDoubles(int pos)
Get an array ofDoublevalue atpos.Target element instance of
Number[]orObject[]will be coerced toDouble[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfNumerics
default Numeric[] getArrayOfNumerics(int pos)
Get an array ofNumericvalue atpos.- Parameters:
pos- the column- Returns:
- the value
-
getArrayOfStrings
default String[] getArrayOfStrings(int pos)
Get an array ofStringvalue atpos.Target element instance of
Object[]will be coerced toString[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfJsonObjects
default JsonObject[] getArrayOfJsonObjects(int pos)
Get an array ofJsonObjectvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfJsonArrays
default JsonArray[] getArrayOfJsonArrays(int pos)
Get an array ofJsonArrayvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfJsons
default Object[] getArrayOfJsons(int pos)
Get an array of JSON elements atpos, the element might benullor one of the following types:- String
- Number
- JsonObject
- JsonArray
- Boolean
- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfTemporals
default Temporal[] getArrayOfTemporals(int pos)
Get an array ofTemporalvalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfLocalDates
default LocalDate[] getArrayOfLocalDates(int pos)
Get an array ofLocalDatevalue atpos.Target element instance of
LocalDateTime[]will be coerced toLocalDate[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfLocalTimes
default LocalTime[] getArrayOfLocalTimes(int pos)
Get an array ofLocalTimevalue atpos.Target element instance of
LocalDateTime[]will be coerced toLocalTime[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfLocalDateTimes
default LocalDateTime[] getArrayOfLocalDateTimes(int pos)
Get an array ofLocalDateTimevalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfOffsetTimes
default OffsetTime[] getArrayOfOffsetTimes(int pos)
Get an array ofOffsetTimevalue atpos.Target element instance of
OffsetDateTime[]will be coerced toOffsetTime[].- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfOffsetDateTimes
default OffsetDateTime[] getArrayOfOffsetDateTimes(int pos)
Get an array ofOffsetDateTimevalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfBuffers
default Buffer[] getArrayOfBuffers(int pos)
Get an array ofBuffervalue atpos.- Parameters:
pos- the position- Returns:
- the value
-
getArrayOfUUIDs
default UUID[] getArrayOfUUIDs(int pos)
Get an array ofUUIDvalue atpos.- Parameters:
pos- the column- Returns:
- the value
-
getArrayOfBigDecimals
default BigDecimal[] getArrayOfBigDecimals(int pos)
Get an array ofBigDecimalvalue atpos.- Parameters:
pos- the column- Returns:
- the value
-
addValue
Tuple addValue(Object value)
Add an object value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addBoolean
default Tuple addBoolean(Boolean value)
Add a boolean value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addShort
default Tuple addShort(Short value)
Add a short value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addInteger
default Tuple addInteger(Integer value)
Add an integer value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLong
default Tuple addLong(Long value)
Add a long value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addFloat
default Tuple addFloat(Float value)
Add a float value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addDouble
default Tuple addDouble(Double value)
Add a double value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addString
default Tuple addString(String value)
Add a string value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addJsonObject
default Tuple addJsonObject(JsonObject value)
Add aJsonObjectvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addJsonArray
default Tuple addJsonArray(JsonArray value)
Add aJsonArrayvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addTemporal
default Tuple addTemporal(Temporal value)
Add aTemporalvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLocalDate
default Tuple addLocalDate(LocalDate value)
Add aLocalDatevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLocalTime
default Tuple addLocalTime(LocalTime value)
Add aLocalTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addLocalDateTime
default Tuple addLocalDateTime(LocalDateTime value)
Add aLocalDateTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addOffsetTime
default Tuple addOffsetTime(OffsetTime value)
Add aOffsetTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addOffsetDateTime
default Tuple addOffsetDateTime(OffsetDateTime value)
Add aOffsetDateTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addBuffer
default Tuple addBuffer(Buffer value)
Add a buffer value at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addUUID
default Tuple addUUID(UUID value)
Add aUUIDvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addBigDecimal
default Tuple addBigDecimal(BigDecimal value)
Add aBigDecimalvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfBoolean
default Tuple addArrayOfBoolean(Boolean[] value)
Add an array ofBooleanvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfShort
default Tuple addArrayOfShort(Short[] value)
Add an array ofShortvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfInteger
default Tuple addArrayOfInteger(Integer[] value)
Add an array ofIntegervalue at the end of the tuple.Target element instance of
Number[]will be coerced toInteger[].- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLong
default Tuple addArrayOfLong(Long[] value)
Add an array ofLongvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfFloat
default Tuple addArrayOfFloat(Float[] value)
Add an array ofFloatvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfDouble
default Tuple addArrayOfDouble(Double[] value)
Add an array ofDoublevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfString
default Tuple addArrayOfString(String[] value)
Add an array ofStringvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfJsonObject
default Tuple addArrayOfJsonObject(JsonObject[] value)
Add an array ofJsonObjectvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfJsonArray
default Tuple addArrayOfJsonArray(JsonArray[] value)
Add an array ofJsonArrayvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfTemporal
default Tuple addArrayOfTemporal(Temporal[] value)
Add an array ofTemporalvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLocalDate
default Tuple addArrayOfLocalDate(LocalDate[] value)
Add an array ofLocalDatevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLocalTime
default Tuple addArrayOfLocalTime(LocalTime[] value)
Add an array ofLocalTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfLocalDateTime
default Tuple addArrayOfLocalDateTime(LocalDateTime[] value)
Add an array ofLocalDateTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfOffsetTime
default Tuple addArrayOfOffsetTime(OffsetTime[] value)
Add an array ofOffsetTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfOffsetDateTime
default Tuple addArrayOfOffsetDateTime(OffsetDateTime[] value)
Add an array ofOffsetDateTimevalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfBuffer
default Tuple addArrayOfBuffer(Buffer[] value)
Add an array ofBuffervalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfUUID
default Tuple addArrayOfUUID(UUID[] value)
Add an array ofUUIDvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
addArrayOfBigDecimal
default Tuple addArrayOfBigDecimal(BigDecimal[] value)
Add an array ofBigDecimalvalue at the end of the tuple.- Parameters:
value- the value- Returns:
- a reference to this, so the API can be used fluently
-
get
default <T> T get(Class<T> type, int position)
Get the the at the specifiedpositionand the specifiedtype.The type can be one of the types returned by the row (e.g
String.class) or an array of the type (e.gString[].class)).- Parameters:
type- the expected value typeposition- the value position- Returns:
- the value if the value is found or null.
-
size
int size()
- Returns:
- the tuple size
-
clear
void clear()
-
deepToString
default String deepToString()
- Returns:
- A String containing the
Object.toString()value of each element, separated by a comma (,) character
-
-