Code example for UUID

Methods: hashCode

0
 
    @Override 
    public int hashCode() { 
        int result = super.hashCode();
        result = 31 * result + (text != null ? text.hashCode() : 0);
        result = 31 * result + (inReplyTo != null ? inReplyTo.hashCode() : 0);
        return result;
    } 
 
    @Override 
    public String toString() {
        return "Comment{" + 
                "text='" + text + '\'' +
                ", inReplyTo=" + inReplyTo +
                ", onEvent=" + onEvent +
                '}'; 
    } 
}