public interface BuddyList
Modifier and Type | Method and Description |
---|---|
Buddy |
addBuddy(Buddy buddy)
Used by the BuddyManager only.
|
void |
clearAll() |
boolean |
containsBuddy(java.lang.String buddyName)
Checks if a Buddy is contained in the BuddyList
|
java.util.List<Buddy> |
getBuddies()
Get a list of all Buddies in the BuddyList
|
Buddy |
getBuddy(java.lang.String buddyName)
Get a Buddy from the BuddyList by name
|
BuddyListManager |
getBuddyListManager()
Get a reference to the BuddyManager managing this BuddyList
|
User |
getOwner()
Get the User that owns this BuddyList
|
java.lang.String |
getOwnerName()
Get the name of the owner of this BuddyList
|
int |
getRuntimeSize()
Obtain the size of the BuddyList, including the temp buddies
|
int |
getSize()
Obtain the size of the BuddyList.
|
boolean |
isBuddyBlocked(java.lang.String buddyName)
Checks whether the specified Buddy is blocked in this BuddyList
|
boolean |
isEmpty()
Checks if the BuddyList is empty
|
boolean |
isFull()
Checks if the BuddyList is full
|
Buddy |
removeBuddy(java.lang.String buddyName)
Used by the BuddyManager only.
|
void |
setBuddyListManager(BuddyListManager buddyListManager) |
ISFSArray |
toSFSArray() |
java.lang.String getOwnerName()
User getOwner()
BuddyListManager getBuddyListManager()
void setBuddyListManager(BuddyListManager buddyListManager)
Buddy getBuddy(java.lang.String buddyName)
buddyName
- the name of the Buddyjava.util.List<Buddy> getBuddies()
Buddy addBuddy(Buddy buddy) throws SFSBuddyListException
Buddy removeBuddy(java.lang.String buddyName)
boolean containsBuddy(java.lang.String buddyName)
buddyName
- the Buddy nameint getSize()
int getRuntimeSize()
boolean isFull()
boolean isEmpty()
boolean isBuddyBlocked(java.lang.String buddyName)
buddyName
- the name of the Buddyvoid clearAll()
ISFSArray toSFSArray()