From 15ecca66863168d68e4156a4dd31fb5874177b6d Mon Sep 17 00:00:00 2001 From: ajs6f Date: Tue, 3 Apr 2018 15:19:06 -0400 Subject: [PATCH] Small tweak to Javadoc for https://github.com/trellis-ldp/trellis/issues/89 --- .../src/main/java/org/trellisldp/api/Resource.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/trellis-api/src/main/java/org/trellisldp/api/Resource.java b/trellis-api/src/main/java/org/trellisldp/api/Resource.java index 1e23c7e0d..7eb1ff885 100644 --- a/trellis-api/src/main/java/org/trellisldp/api/Resource.java +++ b/trellis-api/src/main/java/org/trellisldp/api/Resource.java @@ -143,9 +143,15 @@ default Optional 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;