public final class DbName extends Object implements Supplier<String>
of(String)
or normalize(String)
.Modifier and Type | Field and Description |
---|---|
static DbName |
SYSTEM
DbName of the "_system" database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
get() |
String |
getEncoded() |
int |
hashCode() |
static DbName |
normalize(String value)
Creates a new
DbName instance with the NFC normal form of the provided value. |
static DbName |
of(String value)
Creates a new
DbName instance with the provided value. |
String |
toString() |
public static final DbName SYSTEM
public static DbName of(String value)
DbName
instance with the provided value. If the provided value is not
NFC-normalized, throws
IllegalArgumentException
. No transformation is applied to the provided value.
Use normalize(String)
to create a DbName from a non-NFC-normalized value.value
- desired db nameDbName
instancepublic static DbName normalize(String value)
DbName
instance with the NFC normal form of the provided value.
Note that the created DbName
will hold a value potentially different from the provided one.value
- desired db nameDbName
instancepublic String getEncoded()
Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.