public class DHCPOption
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte |
code |
protected byte[] |
data |
protected byte |
length |
Constructor and Description |
---|
DHCPOption() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getCode() |
byte[] |
getData() |
byte |
getLength() |
int |
hashCode() |
DHCPOption |
setCode(byte code) |
DHCPOption |
setData(byte[] data) |
DHCPOption |
setLength(byte length) |
java.lang.String |
toString() |
public byte getCode()
public DHCPOption setCode(byte code)
code
- the code to setpublic byte getLength()
public DHCPOption setLength(byte length)
length
- the length to setpublic byte[] getData()
public DHCPOption setData(byte[] data)
data
- the data to setpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object