/*
 * To change this license header, choose License Headers in Project Properties. To change this
 * template file, choose Tools | Templates and open the template in the editor.
 */

package im.dadoo.spring.jdbc.support;

import java.io.Serializable;

/**
 * 用于描述sql参数
 * @author shuwen.zsw
 * @param <V1>
 * @param <V2>
 */
public final class Pair<V1, V2> implements Serializable {
  
  private static final long serialVersionUID = -6106927893230115331L;
  
  private V1 v1;
  private V2 v2;
  
  public Pair(V1 v1, V2 v2) {
    this.v1 = v1;
    this.v2 = v2;
  }
  
  public static <V1, V2> Pair<V1, V2> of(V1 v1, V2 v2) {
    return new Pair<V1, V2>(v1, v2);
  }

  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();
    builder.append("Pair [v1=");
    builder.append(v1);
    builder.append(", v2=");
    builder.append(v2);
    builder.append("]");
    return builder.toString();
  }

  public V1 getV1() {
    return v1;
  }

  public void setV1(V1 v1) {
    this.v1 = v1;
  }

  public V2 getV2() {
    return v2;
  }

  public void setV2(V2 v2) {
    this.v2 = v2;
  }
  
}

@@ -266,40 +266,180 @@
 %0A * 
-%E7%94%A8%E4%BA%8E%E6%8F%8F%E8%BF%B0sql%E5%8F%82%E6%95%B0%0D%0A * @author shuwen.zsw
+%3Cp%3EPair is used to define sql parameter which contains two field.%3Cp%3E%0D%0A * %3Cp%3EFor example, BETWEEN clause contains two fields such as begin and end%3C/p%3E%0D%0A * @author codekitten
 %0D%0A *
@@ -468,16 +468,31 @@
 m %3CV2%3E%0D%0A
+ * @since 0.1%0D%0A
  */%0D%0Apub
@@ -740,24 +740,192 @@
 ;%0D%0A  %7D%0D%0A  %0D%0A
+  /**%0D%0A   * This function used to create a new Pair object.%0D%0A   * @param %3CV1%3E%0D%0A   * @param %3CV2%3E%0D%0A   * @param v1%0D%0A   * @param v2%0D%0A   * @return %0D%0A   * @since 0.1%0D%0A   */%0D%0A
   public sta
@@ -966,24 +966,24 @@
 , V2 v2) %7B%0D%0A
+
     return n
@@ -990,22 +990,16 @@
 ew Pair%3C
-V1, V2
 %3E(v1, v2

modify some author to codekitten