Package org.apache.commons.id.uuid

Examples of org.apache.commons.id.uuid.UUID


     * @param format �O�_�榡��.
     * @param prefix �O�_�[�W�e�m�r.
     * @return �^�Ƿs���ͤ������ѧO�N�X.
     */
    public static String nextId(boolean format, boolean prefix) {
        UUID uuid = UUIdTK.generateNextId();
        String uuidResult = null;


        try{
          // �P�_�O�_�ݭn�榡��
          if (format) {
              uuidResult = uuid.toString();
          } else {
              byte[] data = uuid.getRawBytes();
              uuidResult = new String(HexTK.encode(data));
          }

          // �P�_�O�_�ݭn�[�W�e�m�r
          if (prefix) {
View Full Code Here

TOP

Related Classes of org.apache.commons.id.uuid.UUID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.