/*
* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.beans;
import java.util.HashMap;
import java.util.IdentityHashMap;
import java.util.Map;
import static java.util.Locale.ENGLISH;
/**
* A utility class which generates unique names for object instances.
* The name will be a concatenation of the unqualified class name
* and an instance number.
*
* For example, if the first object instance javax.swing.JButton
* is passed into instanceName then the returned
* string identifier will be "JButton0".
*
* @author Philip Milne
*/
class NameGenerator {
private Map