class JavadocSnippet implements JavadocDescriptionElement {

    private String text;

    public JavadocSnippet(String text) {
        if (text == null) {
            throw new NullPointerException();
        }
        this.text = text;
    }

    @Override
    public String toText() {
        return this.text;
    }

    @Override
    public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        return text.hashCode();
    }

    @Override
    public String toString() {
        return "JavadocSnippet{" + "text='" + text + '\'' + '}';
    }
}

        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        JavadocSnippet that = (JavadocSnippet) o;
        return text.equals(that.text);
    
<no_super_class>