@Test void testIsMementoLink() { final String url = "http: final TimemapGenerator svc = new DefaultTimemapGenerator(); final List<Link> links = asList( fromUri(url).rel("memento").param("datetime", "Fri, 11 May 2018 15:29:25 GMT").build(), fromUri(url).rel("foo").param("datetime", "Fri, 11 May 2018 15:39:25 GMT").build(), fromUri(url).rel("memento").param("bar", "Fri, 11 May 2018 15:49:25 GMT").build()); assertEquals(12L, svc.asRdf(url, links).count()); }
static boolean isMementoLink(final Link link) { return link.getRels().contains(MEMENTO) && link.getParams().containsKey(DATETIME); }
DefaultTimemapGenerator implements TimemapGenerator { static boolean isMementoLink(final Link link) { return link.getRels().contains(MEMENTO) && link.getParams().containsKey(DATETIME); } }
DefaultTimemapGenerator implements TimemapGenerator { static boolean isMementoLink(final Link link) { return link.getRels().contains(MEMENTO) && link.getParams().containsKey(DATETIME); }  }
DefaultTimemapGenerator implements TimemapGenerator { static boolean isMementoLink(final Link link) { return link.getRels().contains(MEMENTO) && link.getParams().containsKey(DATETIME); }  @Override Stream<Triple> asRdf(final String identifier, final List<Link> mementos); }
DefaultTimemapGenerator implements TimemapGenerator { static boolean isMementoLink(final Link link) { return link.getRels().contains(MEMENTO) && link.getParams().containsKey(DATETIME); }  @Override Stream<Triple> asRdf(final String identifier, final List<Link> mementos);  }