|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.mac.MacAddress
public class MacAddress
Contains a Mac address.
| Field Summary | |
|---|---|
private int |
addr
address data. |
static MacAddress |
ANY
Broadcast Mac address. |
static MacAddress |
LOOP
Loopback Mac address. |
static MacAddress |
NULL
Null/invalid Mac address. |
| Constructor Summary | |
|---|---|
MacAddress(int addr)
Create a new Mac address object. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
Return whether this mac address is equal to another object. |
int |
hashCode()
Compute hash code for mac address. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MacAddress ANY
public static final MacAddress LOOP
public static final MacAddress NULL
private int addr
| Constructor Detail |
|---|
public MacAddress(int addr)
addr - address data| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object to test equality against
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||