本文整理了Java中net.jini.id.Uuid.toString()
方法的一些代码示例,展示了Uuid.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Uuid.toString()
方法的具体详情如下:
包路径:net.jini.id.Uuid
类名称:Uuid
方法名:toString
[英]Returns a string representation of this Uuid
.
The string representation is 36 characters long, with five fields of zero-filled, lowercase hexadecimal numbers separated by hyphens. The fields of the string representation are derived from the components of the 128-bit value in the following order:
time_low
(8 hexadecimal digits)time_mid
(4 hexadecimal digits)version
and time_hi
treated as a single field (4 hexadecimal digits)variant
and clock_seq
treated as a single field (4 hexadecimal digits)node
(12 hexadecimal digits)As an example, a Uuid
with the 128-bit value
0x0123456789ABCDEF0123456789ABCDEF
would have the following string representation:
01234567-89ab-cdef-0123-456789abcdef
[中]返回此Uuid
的字符串表示形式。
字符串表示法是36个字符长,有五个由零填充的小写十六进制数字段,用连字符分隔。字符串表示的字段按以下顺序从128位值的组成部分派生:
*time_low
(8位十六进制数字)
*time_mid
(四位十六进制数字)
*version
和time_hi
被视为单个字段(4个十六进制数字)
*variant
和clock_seq
被视为单个字段(4个十六进制数字)
*node
(12位十六进制数字)
例如,具有128位值的Uuid
0x0123456789ABCDEF0123456789ABCDEF
将具有以下字符串表示形式:
01234567-89ab-cdef-0123-456789abcdef
代码示例来源:origin: xap/xap
@Override
public String toString() {
return "TxnMgrProxy [proxyId=" + proxyID.toString() + ", isDirect=" + (direct != null) + "]";
}
代码示例来源:origin: au.net.zeus.jgdms.mercury/mercury-service
/**
* Utility method that returns the associated File object
* for the given Uuid's persistence directory
*/
static File getEventLogPath(String parent, Uuid uuid) {
return new File(parent, uuid.toString());
}
代码示例来源:origin: au.net.zeus.jgdms.mercury/mercury-service
@Override
public String toString () {
return getClass().getName() + ":" + cookie.toString();
}
代码示例来源:origin: au.net.zeus.jgdms/jgdms-platform
/**
* Converts Uuid to an RFC4122 compliant URI containing the Uuid.
*
* @return a RFC4122 compliant URI.
*/
public final Uri toUri(){
return Uri.create("urn:uuid:" + toString());
}
/**
代码示例来源:origin: xap/xap
public String getOrInitTemplateUID() {
if (_templateUID == null)
_templateUID = UuidFactory.generate().toString();
return _templateUID;
}
代码示例来源:origin: xap/xap
key = spaceUuid.toString();
} else {
key = spaceUuid.toString() + messageConverter.getClass().getName();
代码示例来源:origin: xap/xap
key = spaceUuid.toString();
} else {
key = spaceUuid.toString() + messageConverter.getClass().getName();
代码示例来源:origin: xap/xap
public ZookeeperLastPrimaryHandler(SpaceImpl spaceImpl, Logger logger) {
this._logger = logger;
this._spaceImpl = spaceImpl;
this._attributeStoreKey = toPath(spaceImpl.getName(), String.valueOf(spaceImpl.getPartitionIdOneBased()));
this.attributeStoreValue = toId(spaceImpl.getInstanceId(), spaceImpl.getSpaceUuid().toString());
this._attributeStore = createZooKeeperAttributeStore();
}
内容来源于网络,如有侵权,请联系作者删除!