-5

I have one existing Java 7 method which accepts nothing but return class instance. I want to change it in java 8 using any existing functional interface but don't know what i can use here.

public NotificationPage infraSelection() { ...... return this; }

Here NotificationPage is class name.

1 Answers1

1

Maybe you can use the Supplier<T> interface?

It declares the method T get().

Hobojo
  • 66
  • 5