Advertisement
Guest User

Untitled

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