Code example for ConcurrentSkipListMap

0
 * @param <E> The enum type of the key 
 */ 
 
public class IncrementalName<E extends Enum<E>>  {
	/** The map of strings */ 
	private final ConcurrentSkipListMap<E, String> map = new ConcurrentSkipListMap<E, String>();
	/** The configured delimiter */ 
	private final CharSequence delimiter;
	 
	/** 
	 * Creates a new IncrementalName 
	 * @param delimiter The delimiter that will separate each entry when rendered 
	 */ 
	public IncrementalName(CharSequence delimiter) {
		this.delimiter = delimiter;
	} 
	 
	/** 
	 * Pushes a value into the name, rewinding the name if the passed type is already in the map 
	 * @param type The type of the value being pushed 
	 * @param value The value to be pushed into the name