public class CapabilityBlock extends Object
Constructor and Description |
---|
CapabilityBlock()
Creates a new empty capability block.
|
CapabilityBlock(int flag,
String uuid)
Creates a new capability block.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines if two capability blocks are equal.
|
static ArrayList |
getCapabilities()
Get the value of capabilities.
|
static CapabilityBlock |
getCapabilityBlock(byte[] b)
Get the capability uuid given its data.
|
static CapabilityBlock |
getCapabilityBlock(int flag)
Get the capability uuid given its flag.
|
byte[] |
getData()
Get the value of data.
|
int |
getFlag()
Get the value of flag.
|
String |
getUUID()
Get the value of uuid.
|
int |
hashCode()
Return the hash code of this capability block.
|
void |
setData(byte[] data)
Set the value of data.
|
void |
setFlag(int flag)
Set the value of flag.
|
void |
setUUID(String uuid)
Set the value of uuid.
|
public CapabilityBlock()
public CapabilityBlock(int flag, String uuid)
flag
- the flaguuid
- the UUID stringpublic int getFlag()
public void setFlag(int flag)
flag
- Value to assign to flag.public String getUUID()
public void setUUID(String uuid)
uuid
- Value to assign to uuid.public byte[] getData()
public void setData(byte[] data)
data
- Value to assign to data.public boolean equals(Object obj)
public int hashCode()
public static CapabilityBlock getCapabilityBlock(int flag)
flag
- the capability flagpublic static CapabilityBlock getCapabilityBlock(byte[] b)
b
- the capability datapublic static ArrayList getCapabilities()