Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Checks whether a User is a daemon user or not
- *
- * however this is not the preferred method for checking to see if the current thread is a daemon thread
- * rather use Daemon.isDeamonThread()
- * the isDaemonThread is preferred for checking to see if you are in that thread or if the current thread is daemon.
- *
- * @param user, User
- * @return true if the two uuid values correspond else, false
- * @should user is a daemon one if user Uuid is equal to daemon Uuid
- * @should user is not a daemon one if user Uuid is not equal to daemon Uuid
- */
- public static boolean isDaemonUser(User user) {
- return DAEMON_USER_UUID.equals(user.getUuid());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement