Compare Long values (userId) with equals method.