Skip to content

Instantly share code, notes, and snippets.

@brilianfird
Created September 19, 2020 03:34
Show Gist options
  • Save brilianfird/eb02b942d199a2d8a372e5b73fdbce75 to your computer and use it in GitHub Desktop.
Save brilianfird/eb02b942d199a2d8a372e5b73fdbce75 to your computer and use it in GitHub Desktop.
package com.example.functional.programming.intf;
import com.example.functional.programming.model.Person;
@FunctionalInterface
public interface PersonFunctionalInterface {
Person createPerson(String name);
default String getDefaultMethodString() {
return "Default Method";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment