Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /**
  2. * Checks whether User is Daemon.
  3. * However this is not the preferred method for checking to see if the current thread is a daemon thread
  4. * rather use Daemon.isDeamonThread().
  5. * isDaemonThread is preferred for checking to see if you are in that thread or if the current thread is daemon.
  6. *
  7. * @param user, User whose Uuid we are to compare with daemon Uuid.
  8. * @return true if the two uuid values correspond else, false.
  9. * @should user is a daemon one if user Uuid is equal to daemon Uuid.
  10. * @should user is not a daemon one if user Uuid is not equal to daemon Uuid.
  11. */
  12. public static boolean isDaemonUser(User user) {
  13. return DAEMON_USER_UUID.equals(user.getUuid());
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement