[ https://issues.apache.org/jira/browse/JENA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14599460#comment-14599460 ]
A. Soroka edited comment on JENA-966 at 6/24/15 2:10 PM: --------------------------------------------------------- That's very true-- I should not have been so brash about it. But then we just need a subtype with the right semantic (say {{ConstantSupplier}}). It's still a SAM type. I didn't mean to belabor this so long-- my only point (which I clearly didn't make very well) is that when you can extend with methods or with types, Java 8's lambdas make methods much more attractive than they used to be, because a single {{ConstantSupplier}} (or whatever) type could be used to support laziness in any number of methods, as opposed to a new "LazyX" type for every case. The client can discover the option of laziness right at the site (instead of having to become aware of the existence of "LazyX") and can use it with nothing more than {{() -> value}}. was (Author: ajs6f): That's very true-- I should not have been so brash about it. But then we just need a subtype with the right semantic (say {{ConstantSupplier}}). It's still a SAM type. I didn't mean to belabor this so long-- my only point (which I clearly didn't make very well) is that when you can extend with methods or with types, Java 8's lambdas make methods much more attractive than they used to be, because a single {{ConstantSupplier}} (or whatever) type could be used to support laziness in any number of methods, as opposed to a new "LazyX" type for every case. > LazyIterator > ------------ > > Key: JENA-966 > URL: https://issues.apache.org/jira/browse/JENA-966 > Project: Apache Jena > Issue Type: Bug > Components: Core > Affects Versions: Jena 3.0.0 > Reporter: Claude Warren > Assignee: Claude Warren > > LazyIterator is an abstract class. The documentation indicates that the > create() method needs to be overridden to create an instance. From this I > would expect that > now LazyIterator(){ > @Override > public ExtendedIterator<Model> create() { > ... > }}; > Would work however LazyIterator does not override: > remoteNext(), andThen(), toList(), and toSet(). > I believe these should be implemented in the class. -- This message was sent by Atlassian JIRA (v6.3.4#6332)