public boolean equals(Object o) {
        return (o instanceof IdString && o.toString().equals(toString()));
    }
Creates a IdString based on the given serialized document id string.

The document id string can not contain 0x0 byte characters.
document/src/main/java/com/yahoo/document/idstring/IdString.java