Skip to content

Commit 5e676d4

Browse files
committed
Make LazyObjects a Supplier
Because why not. ;-)
1 parent 841e788 commit 5e676d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/scijava/object/LazyObjects.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
package org.scijava.object;
3434

3535
import java.util.Collection;
36+
import java.util.function.Supplier;
3637

3738
/**
3839
* Interface for objects created lazily. This interface provides a mechanism to
@@ -41,9 +42,10 @@
4142
*
4243
* @author Curtis Rueden
4344
*/
44-
public interface LazyObjects<T> {
45+
public interface LazyObjects<T> extends Supplier<Collection<T>> {
4546

4647
/** Gets the collection of objects. */
48+
@Override
4749
Collection<T> get();
4850

4951
}

0 commit comments

Comments
 (0)