Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Checks whether user is Daemon.
- * However this is not the preferred method for checking to see if the current thread is a daemon thread,
- * rather use Daemon.isDeamonThread().
- * isDaemonThread is preferred for checking to see if you are in that thread or if the current thread is daemon.
- *
- * @param user, user whom we are checking if daemon
- * @return true if user is Daemon
- * @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