(Development support class library) UUID class

UUID class

UUID is a program class that generates non-repeated strings. The main function of this program class is to realize an automatic non-repeated string definition based on the timestamp.

Generally, when obtaining a UUID, it is usually a randomly generated content, so it can be obtained by the following methods:

  • Obtain the UUID object: public static UUID randomUUID();
  • Obtain UUID content according to the character: public static UUID fromString(String name);

In the case of automatic naming of some files, the UUID type is very useful.

Guess you like

Origin blog.csdn.net/weixin_46245201/article/details/112565843