10.5. Friends List
We still have two components of the user distributed data structure to cover—the friends list and the channel. As we saw in Section 10.3, part of creating a new user account is setting up a FriendsListEntry object. This object maintains a list of the friends you'd like to keep track of and communicate with. To create a friends list, the Account code first instantiates a FriendsList object (which is a wrapper class used to deal with FriendsListEntrys objects), and calls its create method.
Before looking at the FriendsList object, let's look at the FriendsListEntry:
public class FriendsListEntry implements Entry { public String username; public Vector list; public FriendsListEntry() { } public FriendsListEntry(String username) ...
Get JavaSpaces™ Principles, Patterns, and Practice now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.