public boolean equals(Object o) {
        if (o==this) return true;
        if ( ! (o instanceof ComponentSpecification)) return false;
        ComponentSpecification c = (ComponentSpecification) o;
        return c.stringValue.equals(this.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/ComponentSpecification.java