|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.simpleaim.Buddy
The net.sourceforge.simpleaim.Buddy object represents an active buddy.
| Field Summary | |
long |
becameIdleTime
Time when user became idle, in minutes. |
int |
idle
Initial idle time, in minutes. |
boolean |
isAvailable
Whether or not user is unavailable. |
java.lang.String |
name
net.sourceforge.simpleaim.Buddy Name. |
int |
warning
Warning level, in percentage. |
| Constructor Summary | |
Buddy(java.lang.String name,
int warning,
int idle,
boolean isAvailable)
Constructor for the net.sourceforge.simpleaim.Buddy object. |
|
| Method Summary | |
void |
avail(boolean availability)
Sets buddy's availability status |
int |
compareTo(java.lang.Object o)
Compares this buddy with the specified object for order. |
long |
getIdle()
Returns the buddy's idle time. |
void |
setIdle(int idle)
Sets the buddy's idle time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.String name
public int warning
public int idle
public long becameIdleTime
public boolean isAvailable
| Constructor Detail |
public Buddy(java.lang.String name,
int warning,
int idle,
boolean isAvailable)
name - The buddy's name.warning - The warning level of this buddy in percentage.idle - The idle time in milliseconds.| Method Detail |
public void avail(boolean availability)
availability - Whether the buddy is availablepublic void setIdle(int idle)
idle - The idle time in milliseconds.public long getIdle()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - object to be compared to
java.lang.ClassCastException - If the object is not type net.sourceforge.simpleaim.Buddy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||