Check who I follow via Twitter4j

Is there anyway to check if I follow a specific user on Twitter, besides getting the whole list of people that I follow, and then start comparing identifiers?

What I know is getting the whole list of people I follow is done using this method:

getFriendsIDs(long cursor) 
      Returns an array of numeric IDs for every user the authenticating user is following.
+5
source share
1 answer

You can use the method showFriendshipto find out if one of the users is following the other. Call this method, which returns an object Relationshipthat has methods for checking whether the specified two users match each other.

+11
source

All Articles