com.taobao.metamorphosis.utils
类 IdGenerator

java.lang.Object
  继承者 com.taobao.metamorphosis.utils.IdGenerator

public class IdGenerator
extends Object

Generator for Globally unique Strings.

作者:
boyan

构造方法摘要
IdGenerator()
          Construct an IdGenerator
 
方法摘要
 String generateId()
          Generate a unqiue id
 String generateSanitizedId()
          Generate a unique ID - that is friendly for a URL or file system
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

IdGenerator

public IdGenerator()
Construct an IdGenerator

方法详细信息

generateId

public String generateId()
Generate a unqiue id

返回:
a unique id

generateSanitizedId

public String generateSanitizedId()
Generate a unique ID - that is friendly for a URL or file system

返回:
a unique id


Copyright © 2010–2013. All rights reserved.