Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Tuple> |
__TYPE_ARG |
static Object |
JSON_NULL
The JSON null literal value.
|
Constructor and Description |
---|
Tuple(Object delegate) |
Tuple(Tuple delegate) |
Modifier and Type | Method and Description |
---|---|
Tuple |
addArrayOfBigDecimal(BigDecimal[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfBoolean(Boolean[] value)
Add an array of
Boolean value at the end of the tuple. |
Tuple |
addArrayOfDouble(Double[] value)
Add an array of
Double value at the end of the tuple. |
Tuple |
addArrayOfFloat(Float[] value)
Add an array of
Float value at the end of the tuple. |
Tuple |
addArrayOfInteger(Integer[] value)
Add an array of
Integer value at the end of the tuple. |
Tuple |
addArrayOfLocalDate(java.time.LocalDate[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfLocalDateTime(java.time.LocalDateTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfLocalTime(java.time.LocalTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfLong(Long[] value)
Add an array of
Long value at the end of the tuple. |
Tuple |
addArrayOfOffsetDateTime(java.time.OffsetDateTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfOffsetTime(java.time.OffsetTime[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfShort(Short[] value)
Add an array of
Short value at the end of the tuple. |
Tuple |
addArrayOfString(String[] value)
Add an array of
String value at the end of the tuple. |
Tuple |
addArrayOfTemporal(java.time.temporal.Temporal[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addArrayOfUUID(UUID[] value)
Add an array of value at the end of the tuple.
|
Tuple |
addBigDecimal(BigDecimal value)
Add a value at the end of the tuple.
|
Tuple |
addBigDecimalArray(BigDecimal[] value)
Deprecated.
|
Tuple |
addBoolean(Boolean value)
Add a boolean value at the end of the tuple.
|
Tuple |
addBooleanArray(Boolean[] value)
Deprecated.
|
Tuple |
addBuffer(Buffer value)
Add a buffer value at the end of the tuple.
|
Tuple |
addDouble(Double value)
Add a double value at the end of the tuple.
|
Tuple |
addDoubleArray(Double[] value)
Deprecated.
|
Tuple |
addFloat(Float value)
Add a float value at the end of the tuple.
|
Tuple |
addFloatArray(Float[] value)
Deprecated.
|
Tuple |
addInteger(Integer value)
Add an integer value at the end of the tuple.
|
Tuple |
addIntegerArray(Integer[] value)
Deprecated.
|
Tuple |
addLocalDate(java.time.LocalDate value)
Add a
LocalDate value at the end of the tuple. |
Tuple |
addLocalDateArray(java.time.LocalDate[] value)
Deprecated.
|
Tuple |
addLocalDateTime(java.time.LocalDateTime value)
Add a
LocalDateTime value at the end of the tuple. |
Tuple |
addLocalDateTimeArray(java.time.LocalDateTime[] value)
Deprecated.
|
Tuple |
addLocalTime(java.time.LocalTime value)
Add a
LocalTime value at the end of the tuple. |
Tuple |
addLocalTimeArray(java.time.LocalTime[] value)
Deprecated.
|
Tuple |
addLong(Long value)
Add a long value at the end of the tuple.
|
Tuple |
addLongArray(Long[] value)
Deprecated.
|
Tuple |
addOffsetDateTime(java.time.OffsetDateTime value)
Add a
OffsetDateTime value at the end of the tuple. |
Tuple |
addOffsetDateTimeArray(java.time.OffsetDateTime[] value)
Deprecated.
|
Tuple |
addOffsetTime(java.time.OffsetTime value)
Add a
OffsetTime value at the end of the tuple. |
Tuple |
addOffsetTimeArray(java.time.OffsetTime[] value)
Deprecated.
|
Tuple |
addShort(Short value)
Add a short value at the end of the tuple.
|
Tuple |
addShortArray(Short[] value)
Deprecated.
|
Tuple |
addString(String value)
Add a string value at the end of the tuple.
|
Tuple |
addStringArray(String[] value)
Deprecated.
|
Tuple |
addTemporal(java.time.temporal.Temporal value)
Add a
Temporal value at the end of the tuple. |
Tuple |
addTemporalArray(java.time.temporal.Temporal[] value)
Deprecated.
|
Tuple |
addUUID(UUID value)
Add a
UUID value at the end of the tuple. |
Tuple |
addUUIDArray(UUID[] value)
Deprecated.
|
Tuple |
addValue(Object value)
Add an object value at the end of the tuple.
|
void |
clear() |
String |
deepToString() |
boolean |
equals(Object o) |
<T> T |
get(Class<T> type,
int pos) |
BigDecimal[] |
getArrayOfBigDecimals(int pos)
Get an array of value at
pos . |
Boolean[] |
getArrayOfBooleans(int pos)
Get an array of
Boolean value at pos . |
Double[] |
getArrayOfDoubles(int pos)
Get an array of
Double value at pos . |
Float[] |
getArrayOfFloats(int pos)
Get an array of
Float value at pos . |
Integer[] |
getArrayOfIntegers(int pos)
Get an array of
Integer value at pos . |
Object[] |
getArrayOfJsons(int pos)
Get an array of JSON elements at
pos , the element might be #JSON_NULL null or one of the following types:
String
Number
JsonObject
JsonArray
Boolean
|
java.time.LocalDate[] |
getArrayOfLocalDates(int pos)
Get an array of value at
pos . |
java.time.LocalDateTime[] |
getArrayOfLocalDateTimes(int pos)
Get an array of value at
pos . |
java.time.LocalTime[] |
getArrayOfLocalTimes(int pos)
Get an array of value at
pos . |
Long[] |
getArrayOfLongs(int pos)
Get an array of
Long value at pos . |
Numeric[] |
getArrayOfNumerics(int pos)
Get an array of value at
pos . |
java.time.OffsetDateTime[] |
getArrayOfOffsetDateTimes(int pos)
Get an array of value at
pos . |
java.time.OffsetTime[] |
getArrayOfOffsetTimes(int pos)
Get an array of value at
pos . |
Short[] |
getArrayOfShorts(int pos)
Get an array of
Short value at pos . |
String[] |
getArrayOfStrings(int pos)
Get an array of
String value at pos . |
java.time.temporal.Temporal[] |
getArrayOfTemporals(int pos)
Get an array of value at
pos . |
UUID[] |
getArrayOfUUIDs(int pos)
Get an array of value at
pos . |
BigDecimal |
getBigDecimal(int pos)
Get value at
pos . |
BigDecimal[] |
getBigDecimalArray(int pos)
Deprecated.
|
Boolean |
getBoolean(int pos)
Get a boolean value at
pos . |
Boolean[] |
getBooleanArray(int pos)
Deprecated.
|
Buffer |
getBuffer(int pos)
Get a buffer value at
pos . |
Tuple |
getDelegate() |
Double |
getDouble(int pos)
Get a double value at
pos . |
Double[] |
getDoubleArray(int pos)
Deprecated.
|
Float |
getFloat(int pos)
Get a float value at
pos . |
Float[] |
getFloatArray(int pos)
Deprecated.
|
Integer |
getInteger(int pos)
Get an integer value at
pos . |
Integer[] |
getIntegerArray(int pos)
Deprecated.
|
Object |
getJson(int pos)
Get a JSON element at
pos , the element might be #JSON_NULL null or one of the following types:
String
Number
JsonObject
JsonArray
Boolean
|
java.time.LocalDate |
getLocalDate(int pos)
Get
LocalDate value at pos . |
java.time.LocalDate[] |
getLocalDateArray(int pos)
Deprecated.
|
java.time.LocalDateTime |
getLocalDateTime(int pos)
Get
LocalDateTime value at pos . |
java.time.LocalDateTime[] |
getLocalDateTimeArray(int pos)
Deprecated.
|
java.time.LocalTime |
getLocalTime(int pos)
Get
LocalTime value at pos . |
java.time.LocalTime[] |
getLocalTimeArray(int pos)
Deprecated.
|
Long |
getLong(int pos)
Get a long value at
pos . |
Long[] |
getLongArray(int pos)
Deprecated.
|
Numeric |
getNumeric(int pos)
Get value at
pos . |
Numeric[] |
getNumericArray(int pos)
Deprecated.
|
java.time.OffsetDateTime |
getOffsetDateTime(int pos)
Get
OffsetDateTime value at pos . |
java.time.OffsetDateTime[] |
getOffsetDateTimeArray(int pos)
Deprecated.
|
java.time.OffsetTime |
getOffsetTime(int pos)
Get
OffsetTime value at pos . |
java.time.OffsetTime[] |
getOffsetTimeArray(int pos)
Deprecated.
|
Short |
getShort(int pos)
Get a short value at
pos . |
Short[] |
getShortArray(int pos)
Deprecated.
|
String |
getString(int pos)
Get a string value at
pos . |
String[] |
getStringArray(int pos)
Deprecated.
|
java.time.temporal.Temporal |
getTemporal(int pos)
Get a
Temporal value at pos . |
java.time.temporal.Temporal[] |
getTemporalArray(int pos)
Deprecated.
|
UUID |
getUUID(int pos)
Get
UUID value at pos . |
UUID[] |
getUUIDArray(int pos)
Deprecated.
|
Object |
getValue(int pos)
Get an object value at
pos . |
int |
hashCode() |
static Tuple |
newInstance(Tuple arg) |
static Tuple |
of(Object elt1)
Create a tuple of one element.
|
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() |
String |
toString() |
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. |
public static final io.vertx.lang.rx.TypeArg<Tuple> __TYPE_ARG
public static final Object JSON_NULL
null
value. This is only
used when the database supports JSON types.public Tuple getDelegate()
public static Tuple tuple()
public static Tuple wrap(List<Object> list)
list
with a tuple.
list
- public static Tuple of(Object elt1)
elt1
- the first valuepublic static Tuple of(Object elt1, Object elt2)
elt1
- the first valueelt2
- the second valuepublic static Tuple of(Object elt1, Object elt2, Object elt3)
elt1
- the first valueelt2
- the second valueelt3
- the third valuepublic static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4)
elt1
- the first valueelt2
- the second valueelt3
- the third valueelt4
- the fourth valuepublic static 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 valuepublic static 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 valuepublic static Tuple tuple(List<Object> elements)
elements
list.
The elements
list is not modified.elements
- the list of elementspublic Object getValue(int pos)
pos
.pos
- the positionnull
public Boolean getBoolean(int pos)
pos
.pos
- the positionnull
public Short getShort(int pos)
pos
.pos
- the positionnull
public Integer getInteger(int pos)
pos
.pos
- the positionnull
public Long getLong(int pos)
pos
.pos
- the positionnull
public Float getFloat(int pos)
pos
.pos
- the positionnull
public Double getDouble(int pos)
pos
.pos
- the positionnull
public String getString(int pos)
pos
.pos
- the positionnull
public Object getJson(int pos)
pos
, the element might be #JSON_NULL null
or one of the following types:
pos
- the positionpublic Buffer getBuffer(int pos)
pos
.pos
- the positionnull
public Tuple addValue(Object value)
value
- the valuepublic Tuple addBoolean(Boolean value)
value
- the valuepublic Tuple addShort(Short value)
value
- the valuepublic Tuple addInteger(Integer value)
value
- the valuepublic Tuple addLong(Long value)
value
- the valuepublic Tuple addFloat(Float value)
value
- the valuepublic Tuple addDouble(Double value)
value
- the valuepublic Tuple addString(String value)
value
- the valuepublic Tuple addBuffer(Buffer value)
value
- the valuepublic <T> T get(Class<T> type, int pos)
public int size()
public void clear()
public String deepToString()
Object
value of each element, separated by a comma (,) characterpublic static Tuple wrap(Object[] array)
array
with a tuple.
array
- public Numeric getNumeric(int pos)
pos
.pos
- the positionnull
public java.time.temporal.Temporal getTemporal(int pos)
Temporal
value at pos
.pos
- the positionnull
public java.time.LocalDate getLocalDate(int pos)
LocalDate
value at pos
.pos
- the positionnull
public java.time.LocalTime getLocalTime(int pos)
LocalTime
value at pos
.pos
- the positionnull
public java.time.LocalDateTime getLocalDateTime(int pos)
LocalDateTime
value at pos
.pos
- the positionnull
public java.time.OffsetTime getOffsetTime(int pos)
OffsetTime
value at pos
.pos
- the positionnull
public java.time.OffsetDateTime getOffsetDateTime(int pos)
OffsetDateTime
value at pos
.pos
- the positionnull
public UUID getUUID(int pos)
UUID
value at pos
.pos
- the positionnull
public BigDecimal getBigDecimal(int pos)
pos
.pos
- the positionnull
public Boolean[] getArrayOfBooleans(int pos)
Boolean
value at pos
.pos
- the positionnull
@Deprecated public Boolean[] getBooleanArray(int pos)
Boolean
value at pos
.
Target element instance of Object[]
will be
coerced to Boolean[]
.
pos
- the positionpublic Short[] getArrayOfShorts(int pos)
Short
value at pos
.pos
- the positionnull
@Deprecated public Short[] getShortArray(int pos)
Short
value at pos
.
Target element instance of Number[]
or Object[]
will be
coerced to Short[]
.
pos
- the positionpublic Integer[] getArrayOfIntegers(int pos)
Integer
value at pos
.pos
- the positionnull
@Deprecated public Integer[] getIntegerArray(int pos)
Integer
value at pos
.
Target element instance of Number[]
or Object[]
will be
coerced to Integer[]
.
pos
- the positionpublic Long[] getArrayOfLongs(int pos)
Long
value at pos
.pos
- the positionnull
@Deprecated public Long[] getLongArray(int pos)
Long
value at pos
.
Target element instance of Number[]
or Object[]
will be
coerced to Long[]
.
pos
- the positionpublic Float[] getArrayOfFloats(int pos)
Float
value at pos
.pos
- the positionnull
@Deprecated public Float[] getFloatArray(int pos)
Float
value at pos
.
Target element instance of Number[]
or Object[]
will be
coerced to Float[]
.
pos
- the positionpublic Double[] getArrayOfDoubles(int pos)
Double
value at pos
.pos
- the positionnull
@Deprecated public Double[] getDoubleArray(int pos)
Double
value at pos
.
Target element instance of Number[]
or Object[]
will be
coerced to Double[]
.
pos
- the positionpublic Numeric[] getArrayOfNumerics(int pos)
pos
.pos
- the columnnull
@Deprecated public Numeric[] getNumericArray(int pos)
pos
.pos
- the columnpublic String[] getArrayOfStrings(int pos)
String
value at pos
.pos
- the positionnull
@Deprecated public String[] getStringArray(int pos)
String
value at pos
.
Target element instance of Object[]
will be
coerced to String[]
.
pos
- the positionpublic Object[] getArrayOfJsons(int pos)
pos
, the element might be #JSON_NULL null
or one of the following types:
pos
- the positionpublic java.time.temporal.Temporal[] getArrayOfTemporals(int pos)
pos
.pos
- the positionnull
@Deprecated public java.time.temporal.Temporal[] getTemporalArray(int pos)
pos
.pos
- the positionpublic java.time.LocalDate[] getArrayOfLocalDates(int pos)
pos
.pos
- the positionnull
@Deprecated public java.time.LocalDate[] getLocalDateArray(int pos)
pos
.
Target element instance of LocalDateTime[]
will be
coerced to LocalDate[]
.
pos
- the positionpublic java.time.LocalTime[] getArrayOfLocalTimes(int pos)
pos
.pos
- the positionnull
@Deprecated public java.time.LocalTime[] getLocalTimeArray(int pos)
pos
.
Target element instance of LocalDateTime[]
will be
coerced to LocalTime[]
.
pos
- the positionpublic java.time.LocalDateTime[] getArrayOfLocalDateTimes(int pos)
pos
.pos
- the positionnull
@Deprecated public java.time.LocalDateTime[] getLocalDateTimeArray(int pos)
pos
.pos
- the positionpublic java.time.OffsetTime[] getArrayOfOffsetTimes(int pos)
pos
.pos
- the positionnull
@Deprecated public java.time.OffsetTime[] getOffsetTimeArray(int pos)
pos
.
Target element instance of OffsetDateTime[]
will be
coerced to OffsetTime[]
.
pos
- the positionpublic java.time.OffsetDateTime[] getArrayOfOffsetDateTimes(int pos)
pos
.pos
- the positionnull
@Deprecated public java.time.OffsetDateTime[] getOffsetDateTimeArray(int pos)
pos
.pos
- the positionpublic UUID[] getArrayOfUUIDs(int pos)
pos
.pos
- the columnnull
@Deprecated public UUID[] getUUIDArray(int pos)
pos
.pos
- the columnpublic BigDecimal[] getArrayOfBigDecimals(int pos)
pos
.pos
- the columnnull
@Deprecated public BigDecimal[] getBigDecimalArray(int pos)
pos
.pos
- the columnpublic Tuple addTemporal(java.time.temporal.Temporal value)
Temporal
value at the end of the tuple.value
- the valuepublic Tuple addLocalDate(java.time.LocalDate value)
LocalDate
value at the end of the tuple.value
- the valuepublic Tuple addLocalTime(java.time.LocalTime value)
LocalTime
value at the end of the tuple.value
- the valuepublic Tuple addLocalDateTime(java.time.LocalDateTime value)
LocalDateTime
value at the end of the tuple.value
- the valuepublic Tuple addOffsetTime(java.time.OffsetTime value)
OffsetTime
value at the end of the tuple.value
- the valuepublic Tuple addOffsetDateTime(java.time.OffsetDateTime value)
OffsetDateTime
value at the end of the tuple.value
- the valuepublic Tuple addUUID(UUID value)
UUID
value at the end of the tuple.value
- the valuepublic Tuple addBigDecimal(BigDecimal value)
value
- the valuepublic Tuple addArrayOfBoolean(Boolean[] value)
Boolean
value at the end of the tuple.value
- the value@Deprecated public Tuple addBooleanArray(Boolean[] value)
Boolean
value at the end of the tuple.value
- the valuepublic Tuple addArrayOfShort(Short[] value)
Short
value at the end of the tuple.value
- the value@Deprecated public Tuple addShortArray(Short[] value)
Short
value at the end of the tuple.value
- the valuepublic Tuple addArrayOfInteger(Integer[] value)
Integer
value at the end of the tuple.value
- the value@Deprecated public Tuple addIntegerArray(Integer[] value)
Integer
value at the end of the tuple.
Target element instance of Number[]
will be
coerced to Integer[]
.
value
- the valuepublic Tuple addArrayOfLong(Long[] value)
Long
value at the end of the tuple.value
- the value@Deprecated public Tuple addLongArray(Long[] value)
Long
value at the end of the tuple.value
- the valuepublic Tuple addArrayOfFloat(Float[] value)
Float
value at the end of the tuple.value
- the value@Deprecated public Tuple addFloatArray(Float[] value)
Float
value at the end of the tuple.value
- the valuepublic Tuple addArrayOfDouble(Double[] value)
Double
value at the end of the tuple.value
- the value@Deprecated public Tuple addDoubleArray(Double[] value)
Double
value at the end of the tuple.value
- the valuepublic Tuple addArrayOfString(String[] value)
String
value at the end of the tuple.value
- the value@Deprecated public Tuple addStringArray(String[] value)
String
value at the end of the tuple.value
- the valuepublic Tuple addArrayOfTemporal(java.time.temporal.Temporal[] value)
value
- the value@Deprecated public Tuple addTemporalArray(java.time.temporal.Temporal[] value)
value
- the valuepublic Tuple addArrayOfLocalDate(java.time.LocalDate[] value)
value
- the value@Deprecated public Tuple addLocalDateArray(java.time.LocalDate[] value)
value
- the valuepublic Tuple addArrayOfLocalTime(java.time.LocalTime[] value)
value
- the value@Deprecated public Tuple addLocalTimeArray(java.time.LocalTime[] value)
value
- the valuepublic Tuple addArrayOfLocalDateTime(java.time.LocalDateTime[] value)
value
- the value@Deprecated public Tuple addLocalDateTimeArray(java.time.LocalDateTime[] value)
value
- the valuepublic Tuple addArrayOfOffsetTime(java.time.OffsetTime[] value)
value
- the value@Deprecated public Tuple addOffsetTimeArray(java.time.OffsetTime[] value)
value
- the valuepublic Tuple addArrayOfOffsetDateTime(java.time.OffsetDateTime[] value)
value
- the value@Deprecated public Tuple addOffsetDateTimeArray(java.time.OffsetDateTime[] value)
value
- the valuepublic Tuple addArrayOfUUID(UUID[] value)
value
- the value@Deprecated public Tuple addUUIDArray(UUID[] value)
value
- the valuepublic Tuple addArrayOfBigDecimal(BigDecimal[] value)
value
- the value@Deprecated public Tuple addBigDecimalArray(BigDecimal[] value)
value
- the valueCopyright © 2023 Eclipse. All rights reserved.