protected List<String> extractImageUrls(Document document) {
String imageUrl = document.select("#comicimage img").get(0).attr("src");
String afterImageUrl = document.select("#aftercomic img").attr("src");
- return FluentIterable.from(Arrays.asList(imageUrl, afterImageUrl)).filter(new Predicate<String>() {
-
- @Override
- public boolean apply(String url) {
- return url.length() > 0;
- }
- }).toList();
+ return FluentIterable.from(Arrays.asList(imageUrl, afterImageUrl)).filter(url -> url.length() > 0).toList();
}
@Override