/*
 * Copyright 2018, TeamDev. All rights reserved.
 *
 * Redistribution and use in source and/or binary forms, with or without
 * modification, must retain the above copyright notice and the following
 * disclaimer.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package io.spine.server.storage.jdbc.query;

public class PairedValue<A, B> {

    private final A aValue;
    private final B bValue;

    public PairedValue(A aValue, B bValue) {
        this.aValue = aValue;
        this.bValue = bValue;
    }

    public static <A, B> PairedValue<A, B> of (A a, B b) {
        return new PairedValue<>(a, b);
    }

    public A aValue() {
        return aValue;
    }

    public B bValue() {
        return bValue;
    }
}

@@ -1051,16 +1051,328 @@
 query;%0A%0A
+import static com.google.common.base.Preconditions.checkNotNull;%0A%0A/**%0A * A combination of two values for iterating over the SQL query results.%0A *%0A * %3Cp%3ENulls are not accepted as values for the usage convenience.%0A *%0A * @param %3CA%3E%0A *         the first value type%0A * @param %3CB%3E%0A *         the second value type%0A */%0A
 public c
@@ -1459,21 +1459,22 @@
 ;%0A%0A    p
-ublic
+rivate
  PairedV
@@ -1559,32 +1559,120 @@
  bValue;%0A    %7D%0A%0A
+    /**%0A     * Creates a %7B@code PairedValue%7D instance for the two given values.%0A     */%0A
     public stati
@@ -1700,17 +1700,16 @@
 A, B%3E of
- 
 (A a, B 
@@ -1709,24 +1709,74 @@
 A a, B b) %7B%0A
+        checkNotNull(a);%0A        checkNotNull(b);%0A
         retu

Add doc for `PairedValue`