Package com.arangodb
Class DbName
- java.lang.Object
-
- com.arangodb.DbName
-
public final class DbName extends Object implements Supplier<String>
Class to represent a NFC-normalized database name (as required by ArangoDB extended naming convention). To instantiate useof(String)
ornormalize(String)
.- See Also:
- API Documentation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
get()
String
getEncoded()
int
hashCode()
static DbName
normalize(String value)
Creates a newDbName
instance with the NFC normal form of the provided value.static DbName
of(String value)
Creates a newDbName
instance with the provided value.String
toString()
-
-
-
Field Detail
-
SYSTEM
public static final DbName SYSTEM
DbName of the "_system" database.
-
-
Method Detail
-
of
public static DbName of(String value)
Creates a newDbName
instance with the provided value. If the provided value is not NFC-normalized, throwsIllegalArgumentException
. No transformation is applied to the provided value. Usenormalize(String)
to create a DbName from a non-NFC-normalized value.- Parameters:
value
- desired db name- Returns:
- the created
DbName
instance - See Also:
- NFC normalization, API Documentation
-
normalize
public static DbName normalize(String value)
Creates a newDbName
instance with the NFC normal form of the provided value. Note that the createdDbName
will hold a value potentially different from the provided one.- Parameters:
value
- desired db name- Returns:
- the created
DbName
instance - See Also:
- NFC normalization, API Documentation
-
getEncoded
public String getEncoded()
- Returns:
- the value encoded for usage in HTTP urls.
-
-