Skip to content

Instantly share code, notes, and snippets.

@zarinfam
Last active October 9, 2019 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zarinfam/ecb670c3bcfa142919902c381841bd5c to your computer and use it in GitHub Desktop.
Save zarinfam/ecb670c3bcfa142919902c381841bd5c to your computer and use it in GitHub Desktop.
Created with Copy to Gist
LogReader logReader = (Serializable & LogReader) () -> readAllLogFileLines();
if (logReader instanceof Serializable){
System.out.println("it is Serializable");
}
serializeIt((Serializable) logReader);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment