public boolean endsWith(Name n){
  if (n instanceof CompositeName) {
    return (impl.endsWith(n.size(),n.getAll()));
  }
 else {
    return false;
  }
}

public boolean endsWith ( Name n ) { if ( n instanceof CompositeName ) { return ( impl . endsWith ( n . size ( ) , n . getAll ( ) ) ) ; } else { return false ; } }
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 .
