Merge Key2 into Key.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1945 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -31,17 +31,24 @@ public class Key
|
|||||||
public String[] indices;
|
public String[] indices;
|
||||||
public Comparable[] values;
|
public Comparable[] values;
|
||||||
|
|
||||||
|
public Key (String index, Comparable value)
|
||||||
|
{
|
||||||
|
this(new String[] { index }, new Comparable[] { value });
|
||||||
|
}
|
||||||
|
|
||||||
|
public Key (String index1, Comparable value1,
|
||||||
|
String index2, Comparable value2)
|
||||||
|
{
|
||||||
|
this(new String[] { index1, index2 },
|
||||||
|
new Comparable[] { value1, value2 });
|
||||||
|
}
|
||||||
|
|
||||||
public Key (String[] indices, Comparable[] values)
|
public Key (String[] indices, Comparable[] values)
|
||||||
{
|
{
|
||||||
this.indices = indices;
|
this.indices = indices;
|
||||||
this.values = values;
|
this.values = values;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Key (String index, Comparable value)
|
|
||||||
{
|
|
||||||
this(new String[] { index }, new Comparable[] { value });
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toWhereClause ()
|
public String toWhereClause ()
|
||||||
{
|
{
|
||||||
StringBuilder where = new StringBuilder();
|
StringBuilder where = new StringBuilder();
|
||||||
|
|||||||
Reference in New Issue
Block a user