src/share/classes/javax/naming/CompositeName.java

Print this page

        

*** 203,213 **** public class CompositeName implements Name { private transient NameImpl impl; /** * Constructs a new composite name instance using the components ! * specified by 'comps'. This protected method is intended to be * to be used by subclasses of CompositeName when they override * methods such as clone(), getPrefix(), getSuffix(). * * @param comps A non-null enumeration containing the components for the new * composite name. Each element is of class String. --- 203,213 ---- public class CompositeName implements Name { private transient NameImpl impl; /** * Constructs a new composite name instance using the components ! * specified by 'comps'. This protected method is intended * to be used by subclasses of CompositeName when they override * methods such as clone(), getPrefix(), getSuffix(). * * @param comps A non-null enumeration containing the components for the new * composite name. Each element is of class String.
*** 434,444 **** } } /** * Determines whether a composite name is a suffix of this composite name. ! * A composite name 'n' is a suffix if it it is equal to * getSuffix(size()-n.size())--in other words, this * composite name ends with 'n'. * If n is null or not a composite name, false is returned. * * @param n The possibly null name to check. --- 434,444 ---- } } /** * Determines whether a composite name is a suffix of this composite name. ! * A composite name 'n' is a suffix if it is equal to * getSuffix(size()-n.size())--in other words, this * composite name ends with 'n'. * If n is null or not a composite name, false is returned. * * @param n The possibly null name to check.