net
Class LatestURL.URLTime

java.lang.Object
  extended by net.LatestURL.URLTime
Enclosing class:
LatestURL

protected static class LatestURL.URLTime
extends Object

A class that enhances an url for the modification time. Used as return type from LatestURL.getYoungest(java.util.Collection).


Field Summary
private  long modified
          The modification time of the url above or zero for unknown.
private  URL url
          The url.
 
Constructor Summary
protected LatestURL.URLTime(URL ref, long time)
          Constructs a new url plus time object from the url and the time.
 
Method Summary
 long getModified()
          Returns the modification time.
 URL getURL()
          Returns the url.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

private URL url
The url.


modified

private long modified
The modification time of the url above or zero for unknown.

Constructor Detail

LatestURL.URLTime

protected LatestURL.URLTime(URL ref,
                            long time)
Constructs a new url plus time object from the url and the time.

Method Detail

getURL

public URL getURL()
Returns the url.


getModified

public long getModified()
Returns the modification time.