public final class KeyspaceIdentifier extends Object implements Comparable<KeyspaceIdentifier>
toCql(),
toCql(StringBuilder), or toString().toCql(),
toString()| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PATTERN |
static String |
REGEX |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(KeyspaceIdentifier that) |
boolean |
equals(Object that)
Compares this
KeyspaceIdentifier to the given object. |
int |
hashCode() |
static boolean |
isIdentifier(CharSequence chars)
Returns
true if the given CharSequence is a legal keyspace identifier. |
static KeyspaceIdentifier |
ksId(CharSequence identifier)
Deprecated.
since 2.0, use
of(CharSequence). |
static KeyspaceIdentifier |
of(CharSequence identifier)
Factory method for
KeyspaceIdentifier. |
String |
toCql()
Renders this identifier appropriately.
|
StringBuilder |
toCql(StringBuilder sb)
Appends the rendering of this identifier to the given
StringBuilder, then returns that
StringBuilder. |
String |
toString()
Alias for
toCql(). |
public static final String REGEX
public static final Pattern PATTERN
public static KeyspaceIdentifier ksId(CharSequence identifier)
of(CharSequence).KeyspaceIdentifier. Convenient if imported statically.public static KeyspaceIdentifier of(CharSequence identifier)
KeyspaceIdentifier. Convenient if imported statically.public static boolean isIdentifier(CharSequence chars)
true if the given CharSequence is a legal keyspace identifier.public String toCql()
public StringBuilder toCql(StringBuilder sb)
StringBuilder, then returns that
StringBuilder. If null is given, a new StringBuilder is created, appended to, and
returned.public boolean equals(Object that)
KeyspaceIdentifier to the given object. Note that if a CharSequence is given, a new
KeyspaceIdentifier is created from it and compared, such that a CharSequence can be effectively
equal to a KeyspaceIdentifier.public int compareTo(KeyspaceIdentifier that)
compareTo in interface Comparable<KeyspaceIdentifier>Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.