|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.netaddr.AddressPreference
public class AddressPreference
The AddressPreference class is used to assign preference to the various network addresses on a host. Preferencies are in essence integers that may vary between MAX_PREF and MIN_PREF, where MIN_PREF indicates low or inexisting connectivity through the specified address and MAX_PREF - complete, flowless open internet access (the perfect connection ;-) )
| Field Summary | |
|---|---|
static AddressPreference |
MAX
|
static int |
MAX_PREF
|
static AddressPreference |
MIN
|
static int |
MIN_PREF
|
| Constructor Summary | |
|---|---|
AddressPreference()
Creates an AddressPreference object with a default preference value. |
|
AddressPreference(int preference)
Creates an AddressPreference instance with the specified preference. |
|
| Method Summary | |
|---|---|
int |
compareTo(AddressPreference o)
Compares this address preference with the specified object for order. |
boolean |
equals(Object obj)
Returns true if obj is the same object as this AddressPreference or is at least an instance of AddressPreference and has the same numerical value. |
int |
getPreference()
Returns the exact preference value of this AddressPreference instance. |
(package private) void |
setPreference(int preference)
Sets the preference value of this AddressPreference instance to be |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_PREF
public static final int MIN_PREF
public static final AddressPreference MAX
public static final AddressPreference MIN
| Constructor Detail |
|---|
AddressPreference(int preference)
preference - the preference integer corresponding to this
AddressPreferenceAddressPreference()
| Method Detail |
|---|
void setPreference(int preference)
preference - intpublic int getPreference()
public int compareTo(AddressPreference o)
compareTo in interface Comparable<AddressPreference>o - the Object to be compared.
ClassCastException - if the specified object's type is not an
instance or a descendant of AddressPreference.public boolean equals(Object obj)
equals in class Objectobj - the object to compare with
public String toString()
toString in class Object
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||