public interface Tuple
Modifier and Type | Field and Description |
---|---|
static Object |
JSON_NULL
The JSON null literal value.
|
Modifier and Type | Method and Description |
---|---|
default Tuple |
addBigDecimal(BigDecimal value)
Add a
BigDecimal value at the end of the tuple. |
default Tuple |
addBigDecimalArray(BigDecimal[] value)
Add an array of
BigDecimal value at the end of the tuple. |
default Tuple |
addBoolean(Boolean value)
Add a boolean value at the end of the tuple.
|
default Tuple |
addBooleanArray(Boolean[] value)
Add an array of
Boolean value at the end of the tuple. |
default Tuple |
addBuffer(Buffer value)
Add a buffer value at the end of the tuple.
|
default Tuple |
addBufferArray(Buffer[] value)
Add an array of
Buffer value at the end of the tuple. |
default Tuple |
addDouble(Double value)
Add a double value at the end of the tuple.
|
default Tuple |
addDoubleArray(Double[] value)
Add an array of
Double value at the end of the tuple. |
default Tuple |
addFloat(Float value)
Add a float value at the end of the tuple.
|
default Tuple |
addFloatArray(Float[] value)
Add an array of
Float value at the end of the tuple. |
default Tuple |
addInteger(Integer value)
Add an integer value at the end of the tuple.
|
default Tuple |
addIntegerArray(Integer[] value)
Add an array of
Integer value at the end of the tuple. |
default Tuple |
addLocalDate(java.time.LocalDate value)
Add a
LocalDate value at the end of the tuple. |
default Tuple |
addLocalDateArray(java.time.LocalDate[] value)
Add an array of
LocalDate value at the end of the tuple. |
default Tuple |
addLocalDateTime(java.time.LocalDateTime value)
Add a
LocalDateTime value at the end of the tuple. |
default Tuple |
addLocalDateTimeArray(java.time.LocalDateTime[] value)
Add an array of
LocalDateTime value at the end of the tuple. |
default Tuple |
addLocalTime(java.time.LocalTime value)
Add a
LocalTime value at the end of the tuple. |
default Tuple |
addLocalTimeArray(java.time.LocalTime[] value)
Add an array of
LocalTime value at the end of the tuple. |
default Tuple |
addLong(Long value)
Add a long value at the end of the tuple.
|
default Tuple |
addLongArray(Long[] value)
Add an array of
Long value at the end of the tuple. |
default Tuple |
addOffsetDateTime(java.time.OffsetDateTime value)
Add a
OffsetDateTime value at the end of the tuple. |
default Tuple |
addOffsetDateTimeArray(java.time.OffsetDateTime[] value)
Add an array of
OffsetDateTime value at the end of the tuple. |
default Tuple |
addOffsetTime(java.time.OffsetTime value)
Add a
OffsetTime value at the end of the tuple. |
default Tuple |
addOffsetTimeArray(java.time.OffsetTime[] value)
Add an array of
OffsetTime value at the end of the tuple. |
default Tuple |
addShort(Short value)
Add a short value at the end of the tuple.
|
default Tuple |
addShortArray(Short[] value)
Add an array of
Short value at the end of the tuple. |
default Tuple |
addString(String value)
Add a string value at the end of the tuple.
|
default Tuple |
addStringArray(String[] value)
Add an array of
String value at the end of the tuple. |
default Tuple |
addTemporal(java.time.temporal.Temporal value)
Add a
Temporal value at the end of the tuple. |
default Tuple |
addTemporalArray(java.time.temporal.Temporal[] value)
Add an array of
Temporal value at the end of the tuple. |
default Tuple |
addUUID(UUID value)
Add a
UUID value at the end of the tuple. |
default Tuple |
addUUIDArray(UUID[] value)
Add an array of
UUID value at the end of the tuple. |
Tuple |
addValue(Object value)
Add an object value at the end of the tuple.
|
default <T> Tuple |
addValues(T[] value) |
void |
clear() |
default String |
deepToString() |
default <T> T |
get(Class<T> type,
int pos) |
default BigDecimal |
getBigDecimal(int pos)
Get
BigDecimal value at pos . |
default BigDecimal[] |
getBigDecimalArray(int pos)
Get an array of
BigDecimal value at pos . |
default Boolean |
getBoolean(int pos)
Get a boolean value at
pos . |
default Boolean[] |
getBooleanArray(int pos)
Get an array of
Boolean value at pos . |
default Buffer |
getBuffer(int pos)
Get a buffer value at
pos . |
default Buffer[] |
getBufferArray(int pos)
Get an array of
Buffer value at pos . |
default Double |
getDouble(int pos)
Get a double value at
pos . |
default Double[] |
getDoubleArray(int pos)
Get an array of
Double value at pos . |
default Float |
getFloat(int pos)
Get a float value at
pos . |
default Float[] |
getFloatArray(int pos)
Get an array of
Float value at pos . |
default Integer |
getInteger(int pos)
Get an integer value at
pos . |
default Integer[] |
getIntegerArray(int pos)
Get an array of
Integer value at pos . |
default java.time.LocalDate |
getLocalDate(int pos)
Get
LocalDate value at pos . |
default java.time.LocalDate[] |
getLocalDateArray(int pos)
Get an array of
LocalDate value at pos . |
default java.time.LocalDateTime |
getLocalDateTime(int pos)
Get
LocalDateTime value at pos . |
default java.time.LocalDateTime[] |
getLocalDateTimeArray(int pos)
Get an array of
LocalDateTime value at pos . |
default java.time.LocalTime |
getLocalTime(int pos)
Get
LocalTime value at pos . |
default java.time.LocalTime[] |
getLocalTimeArray(int pos)
Get an array of
LocalTime value at pos . |
default Long |
getLong(int pos)
Get a long value at
pos . |
default Long[] |
getLongArray(int pos)
Get an array of
Long value at pos . |
default java.time.OffsetDateTime |
getOffsetDateTime(int pos)
Get
OffsetDateTime value at pos . |
default java.time.OffsetDateTime[] |
getOffsetDateTimeArray(int pos)
Get an array of
OffsetDateTime value at pos . |
default java.time.OffsetTime |
getOffsetTime(int pos)
Get
OffsetTime value at pos . |
default java.time.OffsetTime[] |
getOffsetTimeArray(int pos)
Get an array of
OffsetTime value at pos . |
default Short |
getShort(int pos)
Get a short value at
pos . |
default Short[] |
getShortArray(int pos)
Get an array of
Short value at pos . |
default String |
getString(int pos)
Get a string value at
pos . |
default String[] |
getStringArray(int pos)
Get an array of
String value at pos . |
default java.time.temporal.Temporal |
getTemporal(int pos)
Get a
Temporal value at pos . |
default java.time.temporal.Temporal[] |
getTemporalArray(int pos)
Get an array of
Temporal value at pos . |
default UUID |
getUUID(int pos)
Get
UUID value at pos . |
default UUID[] |
getUUIDArray(int pos)
Get an array of
UUID value at pos . |
Object |
getValue(int pos)
Get an object value at
pos . |
default <T> T[] |
getValues(Class<T> type,
int pos) |
static Tuple |
of(Object elt1)
Create a tuple of one element.
|
static Tuple |
of(Object elt1,
Object... elts)
Create a tuple of an arbitrary number of elements.
|
static Tuple |
of(Object elt1,
Object elt2)
Create a tuple of two elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3)
Create a tuple of three elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3,
Object elt4)
Create a tuple of four elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3,
Object elt4,
Object elt5)
Create a tuple of five elements.
|
static Tuple |
of(Object elt1,
Object elt2,
Object elt3,
Object elt4,
Object elt5,
Object elt6)
Create a tuple of six elements.
|
int |
size() |
static Tuple |
tuple() |
static Tuple |
tuple(List<Object> elements)
Create a tuple with the provided
elements list. |
static Tuple |
wrap(List<Object> list)
Wrap the provided
list with a tuple. |
static Tuple |
wrap(Object... array)
Wrap the provided
array with a tuple. |
static final Object JSON_NULL
null
value. This is only
used when the database supports JSON types.static Tuple tuple()
static Tuple wrap(List<Object> list)
list
with a tuple.
static Tuple wrap(Object... array)
array
with a tuple.
static Tuple of(Object elt1)
elt1
- the first valuestatic Tuple of(Object elt1, Object elt2)
elt1
- the first valueelt2
- the second valuestatic Tuple of(Object elt1, Object elt2, Object elt3)
elt1
- the first valueelt2
- the second valueelt3
- the third valuestatic Tuple of(Object elt1, Object elt2, Object elt3, Object elt4)
elt1
- the first valueelt2
- the second valueelt3
- the third valueelt4
- the fourth valuestatic Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5)
elt1
- the first valueelt2
- the second valueelt3
- the third valueelt4
- the fourth valueelt5
- the fifth valuestatic Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5, Object elt6)
elt1
- the first valueelt2
- the second valuegelt3
- the third valueelt4
- the fourth valueelt5
- the fifth valueelt6
- the sixth valuestatic Tuple of(Object elt1, Object... elts)
elt1
- the first elementelts
- the remaining elementsstatic Tuple tuple(List<Object> elements)
elements
list.
The elements
list is not modified.elements
- the list of elementsObject getValue(int pos)
pos
.pos
- the positionnull
default Boolean getBoolean(int pos)
pos
.pos
- the positionnull
default Short getShort(int pos)
pos
.pos
- the positionnull
default Integer getInteger(int pos)
pos
.pos
- the positionnull
default Long getLong(int pos)
pos
.pos
- the positionnull
default Float getFloat(int pos)
pos
.pos
- the positionnull
default Double getDouble(int pos)
pos
.pos
- the positionnull
default String getString(int pos)
pos
.pos
- the positionnull
default java.time.temporal.Temporal getTemporal(int pos)
Temporal
value at pos
.pos
- the positionnull
default java.time.LocalDate getLocalDate(int pos)
LocalDate
value at pos
.pos
- the positionnull
default java.time.LocalTime getLocalTime(int pos)
LocalTime
value at pos
.pos
- the positionnull
default java.time.LocalDateTime getLocalDateTime(int pos)
LocalDateTime
value at pos
.pos
- the positionnull
default java.time.OffsetTime getOffsetTime(int pos)
OffsetTime
value at pos
.pos
- the positionnull
default java.time.OffsetDateTime getOffsetDateTime(int pos)
OffsetDateTime
value at pos
.pos
- the positionnull
default Buffer getBuffer(int pos)
pos
.pos
- the positionnull
default UUID getUUID(int pos)
UUID
value at pos
.pos
- the positionnull
default BigDecimal getBigDecimal(int pos)
BigDecimal
value at pos
.pos
- the positionnull
default Boolean[] getBooleanArray(int pos)
Boolean
value at pos
.pos
- the positionnull
default Short[] getShortArray(int pos)
Short
value at pos
.pos
- the positionnull
default Integer[] getIntegerArray(int pos)
Integer
value at pos
.pos
- the positionnull
default Long[] getLongArray(int pos)
Long
value at pos
.pos
- the positionnull
default Float[] getFloatArray(int pos)
Float
value at pos
.pos
- the positionnull
default Double[] getDoubleArray(int pos)
Double
value at pos
.pos
- the positionnull
default String[] getStringArray(int pos)
String
value at pos
.pos
- the positionnull
default java.time.temporal.Temporal[] getTemporalArray(int pos)
Temporal
value at pos
.pos
- the positionnull
default java.time.LocalDate[] getLocalDateArray(int pos)
LocalDate
value at pos
.pos
- the positionnull
default java.time.LocalTime[] getLocalTimeArray(int pos)
LocalTime
value at pos
.pos
- the positionnull
default java.time.LocalDateTime[] getLocalDateTimeArray(int pos)
LocalDateTime
value at pos
.pos
- the positionnull
default java.time.OffsetTime[] getOffsetTimeArray(int pos)
OffsetTime
value at pos
.pos
- the positionnull
default java.time.OffsetDateTime[] getOffsetDateTimeArray(int pos)
OffsetDateTime
value at pos
.pos
- the positionnull
default Buffer[] getBufferArray(int pos)
Buffer
value at pos
.pos
- the positionnull
default UUID[] getUUIDArray(int pos)
UUID
value at pos
.pos
- the columnnull
default BigDecimal[] getBigDecimalArray(int pos)
BigDecimal
value at pos
.pos
- the columnnull
Tuple addValue(Object value)
value
- the valuedefault Tuple addBoolean(Boolean value)
value
- the valuedefault Tuple addShort(Short value)
value
- the valuedefault Tuple addInteger(Integer value)
value
- the valuedefault Tuple addLong(Long value)
value
- the valuedefault Tuple addFloat(Float value)
value
- the valuedefault Tuple addDouble(Double value)
value
- the valuedefault Tuple addString(String value)
value
- the valuedefault Tuple addTemporal(java.time.temporal.Temporal value)
Temporal
value at the end of the tuple.value
- the valuedefault Tuple addLocalDate(java.time.LocalDate value)
LocalDate
value at the end of the tuple.value
- the valuedefault Tuple addLocalTime(java.time.LocalTime value)
LocalTime
value at the end of the tuple.value
- the valuedefault Tuple addLocalDateTime(java.time.LocalDateTime value)
LocalDateTime
value at the end of the tuple.value
- the valuedefault Tuple addOffsetTime(java.time.OffsetTime value)
OffsetTime
value at the end of the tuple.value
- the valuedefault Tuple addOffsetDateTime(java.time.OffsetDateTime value)
OffsetDateTime
value at the end of the tuple.value
- the valuedefault Tuple addBuffer(Buffer value)
value
- the valuedefault Tuple addUUID(UUID value)
UUID
value at the end of the tuple.value
- the valuedefault Tuple addBigDecimal(BigDecimal value)
BigDecimal
value at the end of the tuple.value
- the valuedefault Tuple addBooleanArray(Boolean[] value)
Boolean
value at the end of the tuple.value
- the valuedefault Tuple addShortArray(Short[] value)
Short
value at the end of the tuple.value
- the valuedefault Tuple addIntegerArray(Integer[] value)
Integer
value at the end of the tuple.value
- the valuedefault Tuple addLongArray(Long[] value)
Long
value at the end of the tuple.value
- the valuedefault Tuple addFloatArray(Float[] value)
Float
value at the end of the tuple.value
- the valuedefault Tuple addDoubleArray(Double[] value)
Double
value at the end of the tuple.value
- the valuedefault Tuple addStringArray(String[] value)
String
value at the end of the tuple.value
- the valuedefault Tuple addTemporalArray(java.time.temporal.Temporal[] value)
Temporal
value at the end of the tuple.value
- the valuedefault Tuple addLocalDateArray(java.time.LocalDate[] value)
LocalDate
value at the end of the tuple.value
- the valuedefault Tuple addLocalTimeArray(java.time.LocalTime[] value)
LocalTime
value at the end of the tuple.value
- the valuedefault Tuple addLocalDateTimeArray(java.time.LocalDateTime[] value)
LocalDateTime
value at the end of the tuple.value
- the valuedefault Tuple addOffsetTimeArray(java.time.OffsetTime[] value)
OffsetTime
value at the end of the tuple.value
- the valuedefault Tuple addOffsetDateTimeArray(java.time.OffsetDateTime[] value)
OffsetDateTime
value at the end of the tuple.value
- the valuedefault Tuple addBufferArray(Buffer[] value)
Buffer
value at the end of the tuple.value
- the valuedefault Tuple addUUIDArray(UUID[] value)
UUID
value at the end of the tuple.value
- the valuedefault Tuple addBigDecimalArray(BigDecimal[] value)
BigDecimal
value at the end of the tuple.value
- the valuedefault <T> T get(Class<T> type, int pos)
default <T> T[] getValues(Class<T> type, int pos)
default <T> Tuple addValues(T[] value)
int size()
void clear()
default String deepToString()
Object.toString()
value of each element,
separated by a comma (,) characterCopyright © 2020 Eclipse. All rights reserved.