jdk/src/share/classes/javax/naming/CompositeName.java
changeset 22974 4bf6c0d73bb8
parent 21285 e740104a04f1
equal deleted inserted replaced
22973:616ad2891b71 22974:4bf6c0d73bb8
   203 public class CompositeName implements Name {
   203 public class CompositeName implements Name {
   204 
   204 
   205     private transient NameImpl impl;
   205     private transient NameImpl impl;
   206     /**
   206     /**
   207       * Constructs a new composite name instance using the components
   207       * Constructs a new composite name instance using the components
   208       * specified by 'comps'. This protected method is intended to be
   208       * specified by 'comps'. This protected method is intended
   209       * to be used by subclasses of CompositeName when they override
   209       * to be used by subclasses of CompositeName when they override
   210       * methods such as clone(), getPrefix(), getSuffix().
   210       * methods such as clone(), getPrefix(), getSuffix().
   211       *
   211       *
   212       * @param comps A non-null enumeration containing the components for the new
   212       * @param comps A non-null enumeration containing the components for the new
   213       *              composite name. Each element is of class String.
   213       *              composite name. Each element is of class String.
   434         }
   434         }
   435     }
   435     }
   436 
   436 
   437     /**
   437     /**
   438       * Determines whether a composite name is a suffix of this composite name.
   438       * Determines whether a composite name is a suffix of this composite name.
   439       * A composite name 'n' is a suffix if it it is equal to
   439       * A composite name 'n' is a suffix if it is equal to
   440       * getSuffix(size()-n.size())--in other words, this
   440       * getSuffix(size()-n.size())--in other words, this
   441       * composite name ends with 'n'.
   441       * composite name ends with 'n'.
   442       * If n is null or not a composite name, false is returned.
   442       * If n is null or not a composite name, false is returned.
   443       *
   443       *
   444       * @param  n       The possibly null name to check.
   444       * @param  n       The possibly null name to check.