public static EntityTag generateEntityTag ( ) { String xx = basetime + ":" + Integer . toHexString ( Thread . currentThread ( ) . hashCode ( ) ) ; //$NON-NLS-1$ bcnt ++ ; xx += ":" + bcnt ; //$NON-NLS-1$ return new EntityTag ( xx ) ; }
Construct a unique EntityTag . The tag is constructed by concatening the current time with the current thread s hash code .