[ 
https://issues.apache.org/jira/browse/JENA-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14596545#comment-14596545
 ] 

A. Soroka edited comment on JENA-966 at 6/22/15 8:01 PM:
---------------------------------------------------------

Just as a sidenote for anyone following this who is not familiar with the use 
of {{Supplier}}: {{Supplier}} is not part of the Java 8 Stream API, it's part 
of the Function API. It is a very simple SAM interface that is intended to hold 
a computation. So one might do:

{code:language=java}
# the only cost of the line below is an assignment
Supplier<Foo> fooForLater = () -> expensiveCompution();

# do some other stuff

# the line below is where we pay the cost of expensiveCompution()
Foo myFoo = fooForLater.get();
{code}


was (Author: ajs6f):
Just as a sidenote for anyone following this who is not familiar with the use 
of {{Supplier}}: {{Supplier}} is not part of the Java 8 Stream API, it's part 
of the Function API. It is a very simple SAM interface that is intended to hold 
a computation. So one might do:

{code language="java"}
# the only cost of the line below is an assignment
Supplier<Foo> fooForLater = () -> expensiveCompution();

# do some other stuff

# the line below is where we pay the cost of expensiveCompution()
Foo myFoo = fooForLater.get();
{code}

> 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)

Reply via email to