public class TrackedResource extends Object implements Comparable<TrackedResource>
TrackedResourceProvider
.Modifier and Type | Method and Description |
---|---|
int |
compareTo(TrackedResource other) |
static TrackedResource |
created(URI resource,
Date eventTime)
Creates an instance for a resource created at the specified time.
|
static TrackedResource |
deleted(URI resource,
Date eventTime)
Creates an instance for a resource deleted at the specified time.
|
boolean |
equals(Object obj) |
Date |
getEventTime()
Returns the time at which the event occurred.
|
ResourceEvent.Type |
getEventType()
Returns the type of event.
|
URI |
getResource()
Returns the URL of the resource being changed.
|
URI |
getURI()
Returns the URI of this change event, as it is to serialize in the change log.
|
int |
hashCode() |
static TrackedResource |
modified(URI resource,
Date eventTime)
Creates an instance for a resource modified at the specified time.
|
public static TrackedResource created(URI resource, Date eventTime)
resource
- the created resource.eventTime
- the creation time.public static TrackedResource modified(URI resource, Date eventTime)
resource
- the modified resource.eventTime
- the modification time.public static TrackedResource deleted(URI resource, Date eventTime)
resource
- the deleted resource.eventTime
- the deletion time.public URI getResource()
public ResourceEvent.Type getEventType()
public Date getEventTime()
public URI getURI()
public int compareTo(TrackedResource other)
compareTo
in interface Comparable<TrackedResource>