public List < Friend > getOnlineFriends ( ) { return getFriends ( new Filter < Friend > ( ) { public boolean accept ( Friend friend ) { return friend . isOnline ( ) ; } } ) ; }
Get all your friends who are online .