Name: Added equals method.
Name.Component: Added methods compare and equals.