@Override
    public boolean equals(Object o) {
        if (o == this) return true;
        if ( ! (o instanceof ComponentId c)) return false;

        if (isAnonymous() || c.isAnonymous()) // TODO: Stop doing this
            return false;

        return c.stringValue().equals(stringValue);
    }
Returns the string value of this id.
If no version is given, this is simply the name.
If a version is given, it is name:version.
Trailing ".0"'s are stripped from the version part.
component/src/main/java/com/yahoo/component/ComponentId.java