Code example for AtomicLong

Methods: incrementAndGet

0
			numbers = new AtomicLong();
		} 
		 
		@Override 
		public String getID() {
			return "" + numbers.incrementAndGet();
		} 
	} 
	 
	public static class PrefixAdderDecorator implements IRandomUniqIDGenerator { 
		 
		protected String prefix;
		protected IRandomUniqIDGenerator prefixed;
		 
		 
		public PrefixAdderDecorator(String prefix, IRandomUniqIDGenerator prefixed){
			this.prefix = prefix;
			this.prefixed = prefixed;
		} 
		 
		@Override