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 booleanequals(Object o)Stringget()StringgetEncoded()inthashCode()static DbNamenormalize(String value)Creates a newDbNameinstance with the NFC normal form of the provided value.static DbNameof(String value)Creates a newDbNameinstance with the provided value.StringtoString()
-
-
-
Field Detail
-
SYSTEM
public static final DbName SYSTEM
DbName of the "_system" database.
-
-
Method Detail
-
of
public static DbName of(String value)
Creates a newDbNameinstance 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
DbNameinstance - See Also:
- NFC normalization, API Documentation
-
normalize
public static DbName normalize(String value)
Creates a newDbNameinstance with the NFC normal form of the provided value. Note that the createdDbNamewill hold a value potentially different from the provided one.- Parameters:
value- desired db name- Returns:
- the created
DbNameinstance - See Also:
- NFC normalization, API Documentation
-
getEncoded
public String getEncoded()
- Returns:
- the value encoded for usage in HTTP urls.
-
-