|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.dhcp.messages.HardwareAddress
public final class HardwareAddress
A representation of a DHCP hardware address.
| Constructor Summary | |
|---|---|
HardwareAddress(short type,
short length,
byte[] address)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
byte[] |
getAddress()
|
short |
getLength()
|
java.lang.String |
getNativeRepresentation()
Create the string representation of the hardware address native to the corresponding address type. |
short |
getType()
|
int |
hashCode()
|
java.lang.String |
toString()
Create a string representation of the hardware address. |
static HardwareAddress |
valueOf(java.lang.String s)
Parses a string representation of a hardware address according to the specification given in toString(). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HardwareAddress(short type,
short length,
byte[] address)
type - length - address - | Method Detail |
|---|
public byte[] getAddress()
public short getLength()
public short getType()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getNativeRepresentation()
a1:a2:a3:a4:a5:a6.
Object.toString()public java.lang.String toString()
t/a1:a2:a3...t represents the address type (decimal) and
an represent the address bytes (hexadecimal).
toString in class java.lang.ObjectObject.toString()public static HardwareAddress valueOf(java.lang.String s)
toString().
s -
java.text.ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||