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

public boolean startsWith ( Name n ) { if ( n instanceof CompositeName ) { return ( impl . startsWith ( n . size ( ) , n . getAll ( ) ) ) ; } else { return false ; } }
determines whether a composite name is a prefix of this composite name . a composite name ' n ' is a prefix if it is equal to getprefix ( n . size ( ) ) - - in other words , this composite name starts with ' n ' . if ' n ' is null or not a composite name , false is returned .
