public class Test {
  public static void main(String[] args) {
    final Memento m = () -> isPlaying();
    System.out.println(m);
  }

  private static boolean isPlaying() {
    return false;
  }

  public static interface Memento {
    boolean isPlaying();
  }
}
