Code example for AtomicLong

Methods: addAndGet

0
		this.name = name;
		this.description = description;
		this.ordering = order;
		this.imageUrl = imageUrl;
		this.episodes = episodes;
		this.showId = new Long(idCounter.addAndGet(1L)).toString();
		this.dateCreated = DateTime.now().minusYears(1).minusHours(new Random().nextInt(8700));
		this.dateEdited = DateTime.now().minusYears(1);
	} 
}