java uuid静态方法_Java UUID getLeastSignificantBits()方法与示例
java uuid静态方法
UUID类getLeastSignificantBits()方法 (UUID Class getLeastSignificantBits() method)
getLeastSignificantBits() method is available in java.util package.
getLeastSignificantBits()方法在java.util包中可用。
getLeastSignificantBits() method is used to get the least significant 64 bits of these 128 bits.
getLeastSignificantBits()方法用于获取这128位中的最低有效64位。
getLeastSignificantBits() method is a non-static method, it is accessible with the class object only and if we try to access the method with the class name then we will get an error.
getLeastSignificantBits()方法是一个非静态方法,只能通过类对象访问,如果尝试使用类名访问该方法,则会收到错误消息。
getLeastSignificantBits() method does not throw an exception at the time of getting the least significant bits.
getLeastSignificantBits()方法在获取最低有效位时不会引发异常。
Syntax:
句法:
public long getLeastSignificantBits();
Parameter(s):
参数:
It does not accept any parameter.
它不接受任何参数。
Return value:
返回值:
The return type of the method is long, it returns least significant 64 bits of these 128 bits.
该方法的返回类型为long ,它返回这128位中的最低有效64位。
Example:
例:
// Java program to demonstrate the example
// of long getLeastSignificantBits() method of UUID
import java.util.*;
public class GetLeastSignificantBitsOfUUID {public static void main(String[] args) {// Instantiate UUID
UUID uuid = UUID.fromString("46400000-8cc0-11bd-b43e-10d46e4ef14d");
// By using getLeastSignificantBits() method
// is to returns the least significant bits
long least_sb = uuid.getLeastSignificantBits();
// Display least_sb
System.out.println(" uuid.getLeastSignificantBits(): " + least_sb);
}
}
Output
输出量
uuid.getLeastSignificantBits(): -5458907193756683955
翻译自: https://www.includehelp.com/java/uuid-getleastsignificantbits-method-with-example.aspx
java uuid静态方法
java uuid静态方法_Java UUID getLeastSignificantBits()方法与示例相关推荐
- java uuid静态方法_Java UUID equals()方法与示例
java uuid静态方法 UUID类equals()方法 (UUID Class equals() method) equals() method is available in java.util ...
- java uuid静态方法_Java UUID toString()方法与示例
java uuid静态方法 UUID类toString()方法 (UUID Class toString() method) toString() method is available in jav ...
- java uuid静态方法_Java UUID compareTo()方法与示例
java uuid静态方法 UUID类compareTo()方法 (UUID Class compareTo() method) compareTo() method is available in ...
- java uuid静态方法_Java UUID timestamp()方法与示例
java uuid静态方法 UUID类timestamp()方法 (UUID Class timestamp() method) timestamp() method is available in ...
- java uuid静态方法_Java UUID的variant()方法和示例
java uuid静态方法 UUID类variant()方法 (UUID Class variant() method) variant() method is available in java.u ...
- java uuid静态方法_Java UUID nameUUIDFromBytes()方法及示例
java uuid静态方法 UUID类名UUIDFromBytes()方法 (UUID Class nameUUIDFromBytes() method) nameUUIDFromBytes() me ...
- java uuid静态方法_Java UUID version()方法与示例
java uuid静态方法 UUID Class version()方法 (UUID Class version() method) version() method is available in ...
- java secretkey用法_Java SecretKeyFactory.generateSecret方法代码示例
本文整理汇总了Java中javax.crypto.SecretKeyFactory.generateSecret方法的典型用法代码示例.如果您正苦于以下问题:Java SecretKeyFactory ...
- java soap封装_Java SOAPMessage.writeTo方法代码示例
import javax.xml.soap.SOAPMessage; //导入方法依赖的package包/类 private byte[] createProbeXML() throws SOAPEx ...
最新文章
- 安装PHP7.3.2make编译出现报错,内存不足导致,临时解决方法
- 服务器标记“asp:ScriptManager”不明确。
- 第19节 项目整体绩效评估.
- 【arduino】arudino开发ESP32 SPIFFS文件上传方法
- ios开发证书,描述文件,bundle ID的关系
- mysql索引实现原理
- simulink显示多个数据_如何在 Simulink 中使用 PID Tuner 进行 PID 调参?
- 数值计算方法(零)——运算的要求+基本算法
- 计算机网络—路由器(Cisco Packet Tracer)常用的命令总结
- 使用python实现可视化ftp客户端(本地文件展示和搜索功能、ftp文件展示和搜索功能以及上传和下载功能)
- 无盘服务器缓存,深入研究无盘服务器缓存
- 简单的求三角函数sin,cos的图像
- 系统集成项目管理工程师考试大纲和复习知识点
- python编程选股_通达信转python,python编写选股公式
- 如何理解会议中控系统
- CSI笔记【3】:多进多出/MIMO技术
- python微博情感分析,Python情感分析:鹿晗的粉丝们究竟原谅他了吗?
- 规模化敏捷转型中,哪些问题会被经常问到?
- 如何更改SpringBoot控制台图标?只需一步!
- outlook ios日历_如何从Outlook 2013中的日历中删除假期