/** * Adds the URL to the Collection, first wrapping it in the URLString class * * @param u * URL to add * @return boolean condition returned by the add() method of the underlying * collection */ public boolean add(URL u) { return coll.add(new URLString(u)); }
/** {@inheritDoc} */ @Override public int compareTo(URLString o) { return urlAsString.compareTo(o.toString()); }
@Override public URL next() { return iter.next().getURL(); }