Skip to content

Instantly share code, notes, and snippets.

@jakubjanecek
Created February 10, 2013 13:33
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 jakubjanecek/4749594 to your computer and use it in GitHub Desktop.
Save jakubjanecek/4749594 to your computer and use it in GitHub Desktop.
if (ev.getName().equals("event2")) {
System.out.println("'event2' from device " + ev.getSource());
} else if (ev.getWhen() > System.currentTimeMillis() - 10000) {
System.out.println("fresh event");
} else {
// ignore
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment