public final class ComplexKey
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
emptyArray()
Returns an empty array of objects.
|
static java.lang.Object |
emptyObject()
Returns a single empty object.
|
ComplexKey |
forceArray(boolean force)
Force the cast to a JSON array even when there is only one element.
|
static ComplexKey |
of(java.lang.Object... components)
Generate a ComplexKey based on the input Object arguments (varargs).
|
java.lang.String |
toJson()
Generate a JSON string of the ComplexKey.
|
public static ComplexKey of(java.lang.Object... components)
components
- List of objects that should be convertedpublic static java.lang.Object emptyObject()
public static java.lang.Object[] emptyArray()
public ComplexKey forceArray(boolean force)
force
- whether the ComplexKey should be forced to be an array or not.public java.lang.String toJson()
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.