equal
deleted
inserted
replaced
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. |