public int hashCode(){
  return lastPathComponent.hashCode();
}

public int hashCode ( ) { return lastPathComponent . hashCode ( ) ; }
returns the hashcode for the object . the hash code of a treepath is defined to be the hash code of the last component in the path .
