findGroupById
Finds and retrieves a group by its unique ID.
This method searches for a group identified by the given groupId
. If the group exists, it returns the corresponding Group object. If the group cannot be found or if the groupId
is null or empty, the method returns null.
This method is useful when you need to retrieve a specific group's details based on its ID without performing an operation that requires asynchronous processing.
Return
The Group object corresponding to the given groupId
, or null if no such group exists or if the groupId
is invalid.
Parameters
groupId
The unique identifier of the group to find. If null or empty, the method returns null.