/*
 * Copyright (C) 2017 Julien Viet
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package io.reactiverse.pgclient;

import io.reactiverse.pgclient.data.Box;
import io.reactiverse.pgclient.data.Circle;
import io.reactiverse.pgclient.data.Interval;
import io.reactiverse.pgclient.data.Json;
import io.reactiverse.pgclient.data.Line;
import io.reactiverse.pgclient.data.LineSegment;
import io.reactiverse.pgclient.data.Numeric;
import io.reactiverse.pgclient.data.Path;
import io.reactiverse.pgclient.data.Polygon;
import io.reactiverse.pgclient.impl.ArrayTuple;
import io.reactiverse.pgclient.data.Point;
import io.vertx.codegen.annotations.Fluent;
import io.vertx.codegen.annotations.GenIgnore;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.core.buffer.Buffer;

import java.math.BigDecimal;
import java.time.*;
import java.time.temporal.Temporal;
import java.util.UUID;

A general purpose tuple.
/** * A general purpose tuple. */
@VertxGen public interface Tuple {
Returns:a new empty tuple
/** * @return a new empty tuple */
static Tuple tuple() { return new ArrayTuple(10); }
Create a tuple of one element.
Params:
  • elt1 – the first value
Returns:the tuple
/** * Create a tuple of one element. * * @param elt1 the first value * @return the tuple */
static Tuple of(Object elt1) { ArrayTuple tuple = new ArrayTuple(1); tuple.addValue(elt1); return tuple; }
Create a tuple of two elements.
Params:
  • elt1 – the first value
  • elt2 – the second value
Returns:the tuple
/** * Create a tuple of two elements. * * @param elt1 the first value * @param elt2 the second value * @return the tuple */
static Tuple of(Object elt1, Object elt2) { ArrayTuple tuple = new ArrayTuple(2); tuple.addValue(elt1); tuple.addValue(elt2); return tuple; }
Create a tuple of three elements.
Params:
  • elt1 – the first value
  • elt2 – the second value
  • elt3 – the third value
Returns:the tuple
/** * Create a tuple of three elements. * * @param elt1 the first value * @param elt2 the second value * @param elt3 the third value * @return the tuple */
static Tuple of(Object elt1, Object elt2, Object elt3) { ArrayTuple tuple = new ArrayTuple(3); tuple.addValue(elt1); tuple.addValue(elt2); tuple.addValue(elt3); return tuple; }
Create a tuple of four elements.
Params:
  • elt1 – the first value
  • elt2 – the second value
  • elt3 – the third value
  • elt4 – the fourth value
Returns:the tuple
/** * Create a tuple of four elements. * * @param elt1 the first value * @param elt2 the second value * @param elt3 the third value * @param elt4 the fourth value * @return the tuple */
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4) { ArrayTuple tuple = new ArrayTuple(4); tuple.addValue(elt1); tuple.addValue(elt2); tuple.addValue(elt3); tuple.addValue(elt4); return tuple; }
Create a tuple of five elements.
Params:
  • elt1 – the first value
  • elt2 – the second value
  • elt3 – the third value
  • elt4 – the fourth value
  • elt5 – the fifth value
Returns:the tuple
/** * Create a tuple of five elements. * * @param elt1 the first value * @param elt2 the second value * @param elt3 the third value * @param elt4 the fourth value * @param elt5 the fifth value * @return the tuple */
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5) { ArrayTuple tuple = new ArrayTuple(5); tuple.addValue(elt1); tuple.addValue(elt2); tuple.addValue(elt3); tuple.addValue(elt4); tuple.addValue(elt5); return tuple; }
Create a tuple of six elements.
Params:
  • elt1 – the first value
  • elt2 – the second valueg
  • elt3 – the third value
  • elt4 – the fourth value
  • elt5 – the fifth value
  • elt6 – the sixth value
Returns:the tuple
/** * Create a tuple of six elements. * * @param elt1 the first value * @param elt2 the second valueg * @param elt3 the third value * @param elt4 the fourth value * @param elt5 the fifth value * @param elt6 the sixth value * @return the tuple */
static Tuple of(Object elt1, Object elt2, Object elt3, Object elt4, Object elt5, Object elt6) { ArrayTuple tuple = new ArrayTuple(5); tuple.addValue(elt1); tuple.addValue(elt2); tuple.addValue(elt3); tuple.addValue(elt4); tuple.addValue(elt5); tuple.addValue(elt6); return tuple; }
Create a tuple of an arbitrary number of elements.
Params:
  • elt1 – the first element
  • elts – the remaining elements
Returns:the tuple
/** * Create a tuple of an arbitrary number of elements. * * @param elt1 the first element * @param elts the remaining elements * @return the tuple */
@GenIgnore static Tuple of(Object elt1, Object... elts) { ArrayTuple tuple = new ArrayTuple(1 + elts.length); tuple.addValue(elt1); for (Object elt: elts) { tuple.addValue(elt); } return tuple; }
Get a boolean value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a boolean value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Boolean getBoolean(int pos);
Get an object value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an object value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Object getValue(int pos);
Get a short value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a short value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Short getShort(int pos);
Get an integer value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an integer value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Integer getInteger(int pos);
Get a long value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a long value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Long getLong(int pos);
Get a float value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a float value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Float getFloat(int pos);
Get a double value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a double value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Double getDouble(int pos);
Get a string value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a string value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
String getString(int pos);
Get a json value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a json value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Json getJson(int pos);
Get a Temporal value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a {@link java.time.temporal.Temporal} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Temporal getTemporal(int pos);
Get LocalDate value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link java.time.LocalDate} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) LocalDate getLocalDate(int pos);
Get LocalTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link java.time.LocalTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) LocalTime getLocalTime(int pos);
Get LocalDateTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link java.time.LocalDateTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) LocalDateTime getLocalDateTime(int pos);
Get OffsetTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link java.time.OffsetTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) OffsetTime getOffsetTime(int pos);
Get OffsetDateTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link java.time.OffsetDateTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) OffsetDateTime getOffsetDateTime(int pos);
Get UUID value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link java.util.UUID} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) UUID getUUID(int pos);
Get BigDecimal value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link BigDecimal} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) BigDecimal getBigDecimal(int pos);
Get an array of Integer value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link Integer} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Integer[] getIntegerArray(int pos);
Get an array of Boolean value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link Boolean} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Boolean[] getBooleanArray(int pos);
Get an array of Short value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link Short} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Short[] getShortArray(int pos);
Get an array of Long value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link Long} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Long[] getLongArray(int pos);
Get an array of Float value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link Float} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Float[] getFloatArray(int pos);
Get an array of Double value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link Double} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Double[] getDoubleArray(int pos);
Get an array of String value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link String} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) String[] getStringArray(int pos);
Get an array of LocalDate value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link LocalDate} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) LocalDate[] getLocalDateArray(int pos);
Get an array of LocalTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link LocalTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) LocalTime[] getLocalTimeArray(int pos);
Get an array of OffsetTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link OffsetTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) OffsetTime[] getOffsetTimeArray(int pos);
Get an array of LocalDateTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link LocalDateTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) LocalDateTime[] getLocalDateTimeArray(int pos);
Get an array of OffsetDateTime value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link OffsetDateTime} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) OffsetDateTime[] getOffsetDateTimeArray(int pos);
Get an array of Buffer value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get an array of {@link Buffer} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore Buffer[] getBufferArray(int pos);
Get an array of UUID value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link UUID} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) UUID[] getUUIDArray(int pos);
Get an array of Json value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Json} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore Json[] getJsonArray(int pos);
Get an array of Numeric value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Numeric} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Numeric[] getNumericArray(int pos);
Get an array of Point value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Point} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Point[] getPointArray(int pos);
Get an array of Line value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Line} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Line[] getLineArray(int pos);
Get an array of LineSegment value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link LineSegment} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) LineSegment[] getLineSegmentArray(int pos);
Get an array of Box value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Box} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Box[] getBoxArray(int pos);
Get an array of Path value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Path} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Path[] getPathArray(int pos);
Get an array of Polygon value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Polygon} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Polygon[] getPolygonArray(int pos);
Get an array of Circle value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Circle} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Circle[] getCircleArray(int pos);
Get an array of Interval value at pos.
Params:
  • pos – the column
Returns:the value or null
/** * Get an array of {@link Interval} value at {@code pos}. * * @param pos the column * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Interval[] getIntervalArray(int pos);
Get Numeric value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Numeric} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Numeric getNumeric(int pos);
Get Point value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Point} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Point getPoint(int pos);
Get Line value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Line} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Line getLine(int pos);
Get LineSegment value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link LineSegment} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
LineSegment getLineSegment(int pos);
Get Box value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Box} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Box getBox(int pos);
Get Path value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Path} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Path getPath(int pos);
Get Polygon value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Polygon} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Polygon getPolygon(int pos);
Get Circle value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Circle} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Circle getCircle(int pos);
Get Interval value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get {@link Interval} value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Interval getInterval(int pos);
Get a buffer value at pos.
Params:
  • pos – the position
Returns:the value or null
/** * Get a buffer value at {@code pos}. * * @param pos the position * @return the value or {@code null} */
Buffer getBuffer(int pos);
Add a boolean value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a boolean value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addBoolean(Boolean value);
Add an object value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an object value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addValue(Object value);
Add a short value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a short value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addShort(Short value);
Add an integer value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an integer value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addInteger(Integer value);
Add a long value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a long value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addLong(Long value);
Add a float value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a float value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addFloat(Float value);
Add a double value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a double value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addDouble(Double value);
Add a string value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a string value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addString(String value);
Add a json value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a json value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addJson(Json value);
Add a buffer value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a buffer value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addBuffer(Buffer value);
Add a Temporal value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link java.time.temporal.Temporal} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addTemporal(Temporal value);
Add a LocalDate value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link java.time.LocalDate} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLocalDate(LocalDate value);
Add a LocalTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link java.time.LocalTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLocalTime(LocalTime value);
Add a LocalDateTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link java.time.LocalDateTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLocalDateTime(LocalDateTime value);
Add a OffsetTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link java.time.OffsetTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addOffsetTime(OffsetTime value);
Add a OffsetDateTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link java.time.OffsetDateTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addOffsetDateTime(OffsetDateTime value);
Add a UUID value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link java.util.UUID} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addUUID(UUID value);
Add a Numeric value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Numeric} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addNumeric(Numeric value);
Add a BigDecimal value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link BigDecimal} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addBigDecimal(BigDecimal value);
Add a Point value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Point} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addPoint(Point value);
Add a Line value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Line} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addLine(Line value);
Add a LineSegment value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link LineSegment} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addLineSegment(LineSegment value);
Add a Box value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Box} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addBox(Box value);
Add a Path value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Path} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addPath(Path value);
Add a Polygon value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Polygon} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addPolygon(Polygon value);
Add a Circle value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Circle} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addCircle(Circle value);
Add a Point value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add a {@link Point} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@Fluent Tuple addInterval(Interval value);
Add an array of Integer value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@code Integer} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addIntegerArray(Integer[] value);
Add an array of Boolean value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@code Boolean} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addBooleanArray(Boolean[] value);
Add an array of Short value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Short} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addShortArray(Short[] value);
Add an array of Long value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Long} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLongArray(Long[] value);
Add an array of Float value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Float} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addFloatArray(Float[] value);
Add an array of Double value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Double} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addDoubleArray(Double[] value);
Add an array of String value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link String} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addStringArray(String[] value);
Add an array of LocalDate value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link LocalDate} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLocalDateArray(LocalDate[] value);
Add an array of LocalTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link LocalTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLocalTimeArray(LocalTime[] value);
Add an array of OffsetTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link OffsetTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addOffsetTimeArray(OffsetTime[] value);
Add an array of LocalDateTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link LocalDateTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLocalDateTimeArray(LocalDateTime[] value);
Add an array of OffsetDateTime value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link OffsetDateTime} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addOffsetDateTimeArray(OffsetDateTime[] value);
Add an array of Buffer value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Buffer} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore Tuple addBufferArray(Buffer[] value);
Add an array of UUID value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link UUID} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addUUIDArray(UUID[] value);
Add an array of Json value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Json} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore Tuple addJsonArray(Json[] value);
Add an array of Numeric value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Numeric} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addNumericArray(Numeric[] value);
Add an array of Point value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Point} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addPointArray(Point[] value);
Add an array of Line value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link io.reactiverse.pgclient.data.Line} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLineArray(Line[] value);
Add an array of LineSegment value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link LineSegment} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addLineSegmentArray(LineSegment[] value);
Add an array of Box value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Box} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addBoxArray(Box[] value);
Add an array of Path value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Path} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addPathArray(Path[] value);
Add an array of Polygon value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Polygon} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addPolygonArray(Polygon[] value);
Add an array of Circle value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Circle} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addCircleArray(Circle[] value);
Add an array of Interval value at the end of the tuple.
Params:
  • value – the value
Returns:a reference to this, so the API can be used fluently
/** * Add an array of {@link Interval} value at the end of the tuple. * * @param value the value * @return a reference to this, so the API can be used fluently */
@GenIgnore(GenIgnore.PERMITTED_TYPE) Tuple addIntervalArray(Interval[] value);
Returns:the tuple size
/** * @return the tuple size */
int size(); void clear(); }