Code example for URI

Methods: equals

0
        if (obj instanceof MutableFormat) {
            MutableFormat f = (MutableFormat) obj;
            /* 
             * Format objects MUST be uniquely identified by the assigned URI. 
             */ 
            return this.typeURI.equals(f.typeURI);
        } else { 
            return super.equals(obj);
        } 
    } 
 
    /** 
     * {@inheritDoc} 
     * @see java.lang.Object#hashCode() 
     */ 
    @Override 
    public int hashCode() { 
        return this.typeURI.hashCode();
    } 
}