Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions trellis-api/src/main/java/org/trellisldp/api/Resource.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,15 @@ default Optional<Binary> getBinary() {
}

/**
* Test whether this resource is a Memento resource.
*
* @return true if this is a Memento resource; false otherwise
* Test whether this resource is a Memento resource. {@code Resource}s retrieved
* from {@link ResourceService#get(IRI)} should return {@code false} here, and
* {@code Resource}s retrieved from {@link ResourceService#get(IRI, Instant)}
* should return {@code true}.
*
* @return {@code true} if this is a Memento resource; {@code false} otherwise
*
* @see ResourceService#get(IRI)
* @see ResourceService#get(IRI, Instant)
*/
default Boolean isMemento() {
return false;
Expand Down