Code example for URI

Methods: equals

0
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
 
        Topic topic = (Topic) o;
 
        if (resource != null ? !resource.equals(topic.resource) : topic.resource != null)
            return false; 
 
        return true; 
    } 
 
    @Override 
    public int hashCode() { 
        return resource != null ? resource.hashCode() : 0;
    } 
 
    @Override 
    public String toString() {
        return "Topic{" + 
                "resource=" + resource +
Stop searching for code, let great code find you!  Add Codota to your java IDE